Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320629 - MI command -gdb-set does not properly escape argument
Summary: MI command -gdb-set does not properly escape argument
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-cdi-gdb (show other bugs)
Version: 7.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.0.1   Edit
Assignee: Elena Laskavaia CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-22 09:51 EDT by Elena Laskavaia CLA
Modified: 2010-07-23 16:03 EDT (History)
1 user (show)

See Also:


Attachments
patch (1.17 KB, patch)
2010-07-22 09:53 EDT, Elena Laskavaia CLA
elaskavaia.cdt: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Elena Laskavaia CLA 2010-07-22 09:51:42 EDT
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)
Comment 1 Elena Laskavaia CLA 2010-07-22 09:53:59 EDT
Created attachment 174975 [details]
patch

patch for set command to avoid escaping arguments
Comment 2 Elena Laskavaia CLA 2010-07-23 10:35:13 EDT
fixed on trunk
Comment 4 Elena Laskavaia CLA 2010-07-23 16:03:43 EDT
and fixed on 7.0.1