This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: "-exec-arguments" ignores "--all" (win32 , 7.5, 7.4)
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Martin <lazarus at mfriebe dot de>
- Cc: gdb at sourceware dot org
- Date: Sun, 16 Sep 2012 15:18:39 +0300
- Subject: Re: "-exec-arguments" ignores "--all" (win32 , 7.5, 7.4)
- References: <5055B45A.8040905@mfriebe.de>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.)