Community
Participate
Working Groups
For example if argument is a path with spaces such as "/tmp/path with spaces" command set solib-search-path would be send as -gdb-set solib-search-path "/tmp/path with spaces" which seems logical by gdb does not understand that it wants -gdb-set solib-search-path /tmp/path with spaces and it does work this way Unfortunately set has tons of variables and they have own types. But from what I can tell none of them would parse quotes (reading gdb code)
Created attachment 174975 [details] patch patch for set command to avoid escaping arguments
fixed on trunk
*** cdt cvs genie on behalf of elaskavaia *** Bug 320629 - MI command -gdb-set does not properly escape argument [*] MIGDBSet.java 1.7.18.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/MIGDBSet.java?root=Tools_Project&r1=1.7&r2=1.7.18.1 [*] MIGDBSet.java 1.8 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/MIGDBSet.java?root=Tools_Project&r1=1.7&r2=1.8
and fixed on 7.0.1