From: Eli Zaretskii <eliz@gnu.org>
To: Michael Snyder <msnyder@vmware.com>
Cc: pedro@codesourcery.com, gdb@sourceware.org,
ajeykumar.paragi@hp.com, gdb@gnu.org
Subject: Re: gdb command line option -e or -exec usage
Date: Fri, 12 Feb 2010 20:08:00 -0000 [thread overview]
Message-ID: <83bpfucj7v.fsf@gnu.org> (raw)
In-Reply-To: <4B75A790.6010805@vmware.com>
> Date: Fri, 12 Feb 2010 11:10:08 -0800
> From: Michael Snyder <msnyder@vmware.com>
> CC: "gdb@sourceware.org" <gdb@sourceware.org>, "Paragi, Ajeykumar B" <ajeykumar.paragi@hp.com>, "gdb@gnu.org" <gdb@gnu.org>
>
> Pedro Alves wrote:
> > On Friday 12 February 2010 18:45:01, Michael Snyder wrote:
> >> Paragi, Ajeykumar B wrote:
> >>> Hi,
> >>>
> >>> I have invoked gdb with '-e' command line option on an executable,
> >>> The gdb manual says '-e' is used to set the executable to run.
> >>> But I could not see the symbols read in by gdb when I use -e and could
> >>> not insert breakpoints.
> >>>
> >>> What is the intent of having the command line option "-e" or "-exec"?
> >> Hmmm, it does seem to be broken.
> >
> > It's not. `-e' is equivalent to "(gdb) exec-file". It doesn't read
> > its argument for symbols, only for executable to run, or for pure
> > memory contents.
> >
> >> You can get the same effect, though, by just leaving out the -e flag.
> >>
> >> % gdb my-executable
> >
> > That's equivalent to "(gdb) file", which is equivalent to
> > "gdb -e my-executable -s my-executable", or just "gdb -se my-executable".
> >
>
> Right! Thanks, Pedro.
Are we missing something on the manual regarding this?
next prev parent reply other threads:[~2010-02-12 20:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <RT-Ticket-550483@rt.gnu.org>
[not found] ` <E2E3C92B1E0AB4468F79FC237074B248274A4CFFE8@GVW1116EXC.americas.hpqcorp.net>
[not found] ` <rt-3.4.5-8088-1265718123-322.550483-5-0@rt.gnu.org>
2010-02-12 3:42 ` Paragi, Ajeykumar B
2010-02-12 18:45 ` Michael Snyder
2010-02-12 18:58 ` Pedro Alves
2010-02-12 19:10 ` Michael Snyder
2010-02-12 20:08 ` Eli Zaretskii [this message]
2010-02-15 3:58 ` Paragi, Ajeykumar B
2010-02-16 11:37 ` Pedro Alves
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=83bpfucj7v.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=ajeykumar.paragi@hp.com \
--cc=gdb@gnu.org \
--cc=gdb@sourceware.org \
--cc=msnyder@vmware.com \
--cc=pedro@codesourcery.com \
/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