"-exec-arguments" ignores "--all" (win32 , 7.5, 7.4)
Eli Zaretskii
eliz@gnu.org
Sun Sep 16 12:18:00 GMT 2012
> 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.)
More information about the Gdb
mailing list