From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26565 invoked by alias); 15 Feb 2010 03:58:02 -0000 Received: (qmail 26553 invoked by uid 22791); 15 Feb 2010 03:58:01 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from g4t0017.houston.hp.com (HELO g4t0017.houston.hp.com) (15.201.24.20) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Feb 2010 03:57:56 +0000 Received: from G1W0400.americas.hpqcorp.net (g1w0400.americas.hpqcorp.net [16.236.31.10]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by g4t0017.houston.hp.com (Postfix) with ESMTPS id CCA73382A1; Mon, 15 Feb 2010 03:57:54 +0000 (UTC) Received: from G6W0173.americas.hpqcorp.net (16.230.33.182) by G1W0400.americas.hpqcorp.net (16.236.31.10) with Microsoft SMTP Server (TLS) id 8.2.176.0; Mon, 15 Feb 2010 03:57:40 +0000 Received: from GVW1116EXC.americas.hpqcorp.net ([16.228.24.172]) by G6W0173.americas.hpqcorp.net ([16.230.33.182]) with mapi; Mon, 15 Feb 2010 03:57:40 +0000 From: "Paragi, Ajeykumar B" To: Eli Zaretskii , Michael Snyder CC: "pedro@codesourcery.com" , "gdb@sourceware.org" , "gdb@gnu.org" Date: Mon, 15 Feb 2010 03:58:00 -0000 Subject: RE: gdb command line option -e or -exec usage Message-ID: References: <4B75A1AD.20908@vmware.com> <201002121858.11192.pedro@codesourcery.com> <4B75A790.6010805@vmware.com> <83bpfucj7v.fsf@gnu.org> In-Reply-To: <83bpfucj7v.fsf@gnu.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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/msg00109.txt.bz2 Thank you! Then why -e command line option is present when -se or gdb 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 >> 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?