public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Martin <lazarus@mfriebe.de>
Cc: gdb@sourceware.org
Subject: Re: "-exec-arguments" ignores "--all" (win32 , 7.5, 7.4)
Date: Sun, 16 Sep 2012 12:18:00 -0000	[thread overview]
Message-ID: <83y5kaqhy8.fsf@gnu.org> (raw)
In-Reply-To: <5055B45A.8040905@mfriebe.de>

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

      reply	other threads:[~2012-09-16 12:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-16 11:13 Martin
2012-09-16 12:18 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83y5kaqhy8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb@sourceware.org \
    --cc=lazarus@mfriebe.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).