From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24956 invoked by alias); 12 Feb 2010 20:08:25 -0000 Received: (qmail 24945 invoked by uid 22791); 12 Feb 2010 20:08:25 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 12 Feb 2010 20:08:20 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0KXQ00000VT8S200@a-mtaout22.012.net.il> for gdb@sourceware.org; Fri, 12 Feb 2010 22:08:15 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.70.67.249]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KXQ00JC5VXQ1YD0@a-mtaout22.012.net.il>; Fri, 12 Feb 2010 22:08:15 +0200 (IST) Date: Fri, 12 Feb 2010 20:08:00 -0000 From: Eli Zaretskii Subject: Re: gdb command line option -e or -exec usage In-reply-to: <4B75A790.6010805@vmware.com> To: Michael Snyder Cc: pedro@codesourcery.com, gdb@sourceware.org, ajeykumar.paragi@hp.com, gdb@gnu.org Reply-to: Eli Zaretskii Message-id: <83bpfucj7v.fsf@gnu.org> References: <4B75A1AD.20908@vmware.com> <201002121858.11192.pedro@codesourcery.com> <4B75A790.6010805@vmware.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00104.txt.bz2 > Date: Fri, 12 Feb 2010 11:10:08 -0800 > From: Michael Snyder > CC: "gdb@sourceware.org" , "Paragi, Ajeykumar B" , "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?