From: Midnight Xiong <midnight.xiong@gmail.com>
To: Nick Roberts <nickrob@snap.net.nz>, Bob Rossi <bob@brasko.net>
Cc: gdb@sources.redhat.com
Subject: Re: the fullname in MI
Date: Wed, 22 Jun 2005 05:33:00 -0000 [thread overview]
Message-ID: <7f89a3ea05062122335aa48891@mail.gmail.com> (raw)
In-Reply-To: <17080.38410.920459.599129@farnswood.snap.net.nz>
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
>
prev parent reply other threads:[~2005-06-22 5:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7f89a3ea050621145727f72dad@mail.gmail.com>
2005-06-21 21:58 ` Midnight Xiong
2005-06-21 22:03 ` Bob Rossi
2005-06-21 22:34 ` Nick Roberts
2005-06-22 5:33 ` Midnight Xiong [this message]
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=7f89a3ea05062122335aa48891@mail.gmail.com \
--to=midnight.xiong@gmail.com \
--cc=bob@brasko.net \
--cc=gdb@sources.redhat.com \
--cc=nickrob@snap.net.nz \
/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