[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-debug-dev] Quoting for MI -environment-cd command
|
I am using gdb 6.3 on Windows, my workspace path contains space characters
and it works fine with both (standard and CygWin) command factories.
The problem is Linux. I have tried gdb 5.3 (2002-11-29) and it works fine
without quotes but fails with it. gdb 6.4 doesn't work regardless if there
are quotes or not.
The new "commandFactory" extension point has been added lately (CDT 3.1). If
you need to use a particular version of gdb the best way is to contribute
your own command factory. You can simply extend the "CommandFactory" class
and overwrite the commands you need to change.
Mikhail Khodjaiants
QNX Software Systems
----- Original Message -----
From: "Recoskie, Chris" <crecoskie@xxxxxx>
To: <mitchell-eclipse@xxxxxxxxxxxxxxxx>; "CDT Debug developers list"
<cdt-debug-dev@xxxxxxxxxxx>
Sent: Tuesday, March 07, 2006 10:00 AM
Subject: 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
_______________________________________________
cdt-debug-dev mailing list
cdt-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev