public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* "-exec-arguments" ignores "--all" (win32 , 7.5, 7.4)
@ 2012-09-16 11:13 Martin
  2012-09-16 12:18 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Martin @ 2012-09-16 11:13 UTC (permalink / raw)
  To: gdb

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.

Does any one know why? Or how to solve?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: "-exec-arguments" ignores "--all" (win32 , 7.5, 7.4)
  2012-09-16 11:13 "-exec-arguments" ignores "--all" (win32 , 7.5, 7.4) Martin
@ 2012-09-16 12:18 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2012-09-16 12:18 UTC (permalink / raw)
  To: Martin; +Cc: gdb

> 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.)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-16 12:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-16 11:13 "-exec-arguments" ignores "--all" (win32 , 7.5, 7.4) Martin
2012-09-16 12:18 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).