This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: the fullname in MI
- From: Midnight Xiong <midnight dot xiong at gmail dot com>
- To: Nick Roberts <nickrob at snap dot net dot nz>, Bob Rossi <bob at brasko dot net>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 22 Jun 2005 14:33:06 +0900
- Subject: Re: the fullname in MI
- References: <7f89a3ea050621145727f72dad@mail.gmail.com> <7f89a3ea05062114585b8e320b@mail.gmail.com> <17080.38410.920459.599129@farnswood.snap.net.nz>
- Reply-to: Midnight Xiong <midnight dot xiong at gmail dot com>
Fine. I used an old version. Temporarly, I can use -file-list-exec-source-files.
Thank Bob Rossi, Nick Roberts and others.
On 6/22/05, Nick Roberts <nickrob@snap.net.nz> wrote:
> Midnight Xiong writes:
> > Hi,
> > I'm wondering, how can I get the fullname of source file in MI output?
> > For example,
> > ^done,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={addr="0x00401342",
> > func="main",args=[{name="argc",value="1"},{name="argv",value="0x3d24c8"}],file="
> > test.c",line="11"}
> >
> > For file="test.c", how can I determine the correct filename (with
> > absolute path)?
> > Thank you so much.
>
> What version of GDB are you using? GDB in the CVS repository prints the
> fullname since this change:
>
>
> 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
> Dennis Brueni <dennis@slickedit.com>
>
> * stack.c (print_frame): In MI mode, output a fullname attribute
> with the stack frame.
>
> e.g
>
> (gdb)
> -exec-run
> ^running
> (gdb)
> *stopped,reason="breakpoint-hit",bkptno="1",thread-id="0",frame={addr="0x080484d9",func="main",args=[{name="argc",value="1"},{name="argv",value="0xbffff794"}],file="myprog.c",fullname="/home/nick/myprog.c",line="49"}
> (gdb)
>
>
> Nick
>