MI questions from eclipse.org

Andrew Cagney ac131313@redhat.com
Fri Sep 27 11:14:00 GMT 2002


> =================== GDB/MI issues  ======================
>> * What's the formal syntax for passing parameters:
>>   ex:
>>   -environment-directory "/home/alain:/tmp"
>>   &"Warning: /home/alain/\"/home/alain: No such file or directory.\n"
>>   &"Warning: /tmp\": No such file or directory.\n"
>>   ^done
>> 
>>   If my paths contains spaces or ':'?
>>   - quotes
>>   - escaping
> 
> 
> Ok, this is probably something that needs to be straightened out in MI and 
> GDB. Spaces don't seem to work no matter what. Ditto for ":", both of 
> which seemed to be reserved for the dir command. (The MI command 
> "-environment-directory" just invokes "dir %s". This is probably a large 
> part of the problem.)

Actually, this looks like a bug.  -environment-directory likely isn't 
using the MI argument parser (which would have stripped off the ``"'').

A quick check shows:

ac131313@nettle$ grep environment-directory *.c
mi-cmds.c:  {"environment-directory", "dir %s", 0},

so yes, it isn't yet a true MI command :-(

Andrew




More information about the Gdb mailing list