Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] escaping spaces for gdb

We have few bugs that CDT debugger (gdb) does not work with files,
directories with spaces.
The problem is gdb is totally inconsistent of how thing are handled
and does not follow own generic syntax for commands.
For example mi command -environment-cd does require argument to be
quoted if contain spaces (i.e. to be c-string) but
set solib-search-patch <path> does not understand c-string as path. We
have generic implementation that would quote
all command parameters if they contain spaces. The problem with "set"
command every variable has its own type and may implement
its own parsing. From what I can tell (from the code of gdb 6.8) none
of variables, even defined with type string can parse quotes.
I am proposing to change MIGDBSet class to avoid of calling escaping
routine. Since I cannot check all gdb I am asking here to make
sure it won't break anybody else gdb.
For future command and to review my patch see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=320629


Back to the top