From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12052 invoked by alias); 22 Jun 2005 05:33:12 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12031 invoked by uid 22791); 22 Jun 2005 05:33:08 -0000 Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.196) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 22 Jun 2005 05:33:08 +0000 Received: by wproxy.gmail.com with SMTP id 71so112990wra for ; Tue, 21 Jun 2005 22:33:06 -0700 (PDT) Received: by 10.54.143.4 with SMTP id q4mr228229wrd; Tue, 21 Jun 2005 22:33:06 -0700 (PDT) Received: by 10.54.5.4 with HTTP; Tue, 21 Jun 2005 22:33:06 -0700 (PDT) Message-ID: <7f89a3ea05062122335aa48891@mail.gmail.com> Date: Wed, 22 Jun 2005 05:33:00 -0000 From: Midnight Xiong Reply-To: Midnight Xiong To: Nick Roberts , Bob Rossi Subject: Re: the fullname in MI Cc: gdb@sources.redhat.com In-Reply-To: <17080.38410.920459.599129@farnswood.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <7f89a3ea050621145727f72dad@mail.gmail.com> <7f89a3ea05062114585b8e320b@mail.gmail.com> <17080.38410.920459.599129@farnswood.snap.net.nz> X-SW-Source: 2005-06/txt/msg00200.txt.bz2 Fine. I used an old version. Temporarly, I can use -file-list-exec-source-f= iles. Thank Bob Rossi, Nick Roberts and others. On 6/22/05, Nick Roberts wrote: > Midnight Xiong writes: > > Hi, > > I'm wondering, how can I get the fullname of source file in MI output? > > For example, > > ^done,reason=3D"breakpoint-hit",bkptno=3D"1",thread-id=3D"1",frame=3D= {addr=3D"0x00401342", > > func=3D"main",args=3D[{name=3D"argc",value=3D"1"},{name=3D"argv",valu= e=3D"0x3d24c8"}],file=3D" > > test.c",line=3D"11"} > > > > For file=3D"test.c", how can I determine the correct filename (with > > absolute path)? > > Thank you so much. >=20 > What version of GDB are you using? GDB in the CVS repository prints the > fullname since this change: >=20 >=20 > 2005-05-17 Daniel Jacobowitz > Dennis Brueni >=20 > * stack.c (print_frame): In MI mode, output a fullname attribute > with the stack frame. >=20 > e.g >=20 > (gdb) > -exec-run > ^running > (gdb) > *stopped,reason=3D"breakpoint-hit",bkptno=3D"1",thread-id=3D"0",frame=3D{= addr=3D"0x080484d9",func=3D"main",args=3D[{name=3D"argc",value=3D"1"},{name= =3D"argv",value=3D"0xbffff794"}],file=3D"myprog.c",fullname=3D"/home/nick/m= yprog.c",line=3D"49"} > (gdb) >=20 >=20 > Nick >