[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-debug-dev] Quoting for MI -environment-cd command
|
What version of GDB was this fixed in? CDT currently supports GDB 5.2.1
I believe, so we would have to maintain support for whatever behaviour
is there.
___________________________________________
Chris Recoskie
Software Designer
Texas Instruments, Toronto
http://eclipse.org/cdt
> -----Original Message-----
> From: cdt-debug-dev-bounces@xxxxxxxxxxx [mailto:cdt-debug-dev-
> bounces@xxxxxxxxxxx] On Behalf Of mitchell-eclipse@xxxxxxxxxxxxxxxx
> Sent: Tuesday, March 07, 2006 12:24 AM
> To: cdt-debug-dev@xxxxxxxxxxx
> Subject: [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
> _______________________________________________
> cdt-debug-dev mailing list
> cdt-debug-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev