public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Mike Frysinger <vapier@gentoo.org>
Cc: gdb@sourceware.org, horserivers@gmail.com
Subject: Re: what is the "-ex" command option?
Date: Sat, 11 Aug 2012 16:20:00 -0000	[thread overview]
Message-ID: <83k3x5csee.fsf@gnu.org> (raw)
In-Reply-To: <201208111159.16332.vapier@gentoo.org>

> From: Mike Frysinger <vapier@gentoo.org>
> Date: Sat, 11 Aug 2012 11:59:15 -0400
> Cc: Smith John <horserivers@gmail.com>
> 
> $ gdb --help | grep -e--eval-command -A 3
>   --eval-command=COMMAND, -ex
>                      Execute a single GDB command.
>                      May be used multiple times and in conjunction
>                      with --command.

Btw, the place we show "-ex" on the screen is unfortunate, as it is
very hard to find it at first glance.  See how it is obscured by text
above and below it:

  --cd=DIR           Change current directory to DIR.
  --command=FILE, -x Execute GDB commands from FILE.
  --eval-command=COMMAND, -ex
                     Execute a single GDB command.
                     May be used multiple times and in conjunction

It would be much better if we reformat the output like this:

  --cd=DIR           Change current directory to DIR.
  --command=FILE, -x Execute GDB commands from FILE.
  --eval-command=COMMAND,
                 -ex Execute a single GDB command.
                     May be used multiple times and in conjunction

      reply	other threads:[~2012-08-11 16:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-11  7:33 Smith John
2012-08-11 15:59 ` Mike Frysinger
2012-08-11 16:20   ` 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=83k3x5csee.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb@sourceware.org \
    --cc=horserivers@gmail.com \
    --cc=vapier@gentoo.org \
    /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).