[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-debug-dev] Quoting for MI -environment-cd command
|
The MIEnvironmentCD class (implementing the GDB MI -environment-cd
command) overrides MICommand::parametersToString so as not to perform
the usual MI quoting:
* !@*^%^$( sigh ... gdb for this command does not make any interpretation
* So we must past the command verbatim without any changes.
GDB was fixed on 2002-12-13 so that this comment is no longer true;
the -environment-cd command is now just like all the other MI
commands.
As a result, current versions of CDT are broken if the destination
path contains a space, backslash, or quote, as GDB treats those
characters as special, unless they are quoted. On UNIX, this is a
corner case, but on Windows, spaces are routine.
The fix for the problem should be simple: remove the override of
parametersToString.
Unfortunately, I'm still working out how to build Eclipse myself, so I
haven't actually been able to test that in practice, but I was hoping
that one of you kind folks might be willing to make the change -- or
at least let me know if it would be an acceptable change, once I am
able to test it.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@xxxxxxxxxxxxxxxx
(650) 331-3385 x713