Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Paragi, Ajeykumar B" <ajeykumar.paragi@hp.com>
To: Eli Zaretskii <eliz@gnu.org>, Michael Snyder <msnyder@vmware.com>
Cc: "pedro@codesourcery.com" <pedro@codesourcery.com>,
	"gdb@sourceware.org" 	<gdb@sourceware.org>,
	"gdb@gnu.org" <gdb@gnu.org>
Subject: RE: gdb command line option -e or -exec usage
Date: Mon, 15 Feb 2010 03:58:00 -0000	[thread overview]
Message-ID: <E2E3C92B1E0AB4468F79FC237074B248274B0AADE2@GVW1116EXC.americas.hpqcorp.net> (raw)
In-Reply-To: <83bpfucj7v.fsf@gnu.org>

Thank you!
Then why -e command line option is present when -se or gdb <exec-name> does the job.
Is it to load the symbol file which we like to..?

Regards,
Ajay

>-----Original Message-----
>From: Eli Zaretskii [mailto:eliz@gnu.org]
>Sent: Saturday, February 13, 2010 1:36 AM
>To: Michael Snyder
>Cc: pedro@codesourcery.com; gdb@sourceware.org; Paragi, Ajeykumar B;
>gdb@gnu.org
>Subject: Re: gdb command line option -e or -exec usage
>
>> 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?


  reply	other threads:[~2010-02-15  3:58 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
2010-02-15  3:58               ` Paragi, Ajeykumar B [this message]
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=E2E3C92B1E0AB4468F79FC237074B248274B0AADE2@GVW1116EXC.americas.hpqcorp.net \
    --to=ajeykumar.paragi@hp.com \
    --cc=eliz@gnu.org \
    --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