This is the mail archive of the gdb@sourceware.org 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: "-exec-arguments" ignores "--all" (win32 , 7.5, 7.4)


> Date: Sun, 16 Sep 2012 12:13:30 +0100
> From: Martin <lazarus@mfriebe.de>
> 
> I found that gdb (tested 7.5 and 7.4) on win 32 (tested on vista) does 
> ignore --all as argument for the debuggee.
>    -exec-arguments --all
> 
> start gdb with
> gdb -i mi yourexe.exe
> 
> and enter
> -exec-arguments --all
> -exec-run
> 
> the exe will not see the argument. It works with any other argument, 
> that I tested.

I see the same on GNU/Linux, so it's not a Windows-only thing.

> Does any one know why?

Seems like a bug to me: mi/mi-parse.c:mi_parse eats up the --all part,
probably in order to handle commands related to all thread groupd, all
inferiors, etc.

> Or how to solve?

Quote it, like this:

  -exec-arguments "--all"

(If the special treatment of --all is not a bug, this should be
documented, including the quoting fire-escape.)


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