This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MI questions from eclipse.org


=================== 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]