Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] fix missing quotes of escaped arguments with gdb mi (bug 231326)

the GDB MI interface requires things to be quoted if there is
whitespace in an argument, and the existing code does that.  however,
it also requires things to be quoted if using escape sequences.
currently the code does not do that.

so the MICommand.optionsToString() function will turn:
c:\moo\cow\foo.c
into:
c:\\moo\\cow\\foo.c
but it needs to turn it into:
"c:\\moo\\cow\\foo.c"

anything not enclosed in quotes will be interpreted literally.  ive
posted a patch for the issue to the bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=231326
here:
https://bugs.eclipse.org/bugs/attachment.cgi?id=99565
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Back to the top