public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: Midnight Xiong <midnight.xiong@gmail.com>
Cc: gdb@sources.redhat.com
Subject: Re: the fullname in MI
Date: Tue, 21 Jun 2005 22:03:00 -0000	[thread overview]
Message-ID: <20050621220303.GB6754@white> (raw)
In-Reply-To: <7f89a3ea05062114585b8e320b@mail.gmail.com>

On Wed, Jun 22, 2005 at 06:58:41AM +0900, Midnight Xiong wrote:
> 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.

You can either add a patch to GDB/MI that puts the fullname in the
breakpoint output, or you can call -file-list-exec-source-file (which
will tell you the fullname of the current source line), or you can call
-file-list-exec-source-files to get a list of all the filename/fullname
pairs that GDB knows about.

The first approach would be best and I could point you in the correct
direction.

Bob Rossi

  reply	other threads:[~2005-06-21 22:03 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 [this message]
2005-06-21 22:34   ` Nick Roberts
2005-06-22  5:33     ` Midnight Xiong

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=20050621220303.GB6754@white \
    --to=bob@brasko.net \
    --cc=gdb@sources.redhat.com \
    --cc=midnight.xiong@gmail.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).