Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <ghost@cs.msu.su>
To: gdb@sources.redhat.com
Subject: Re: MI: full file name
Date: Wed, 23 Nov 2005 13:53:00 -0000	[thread overview]
Message-ID: <dm1cp4$jqv$1@sea.gmane.org> (raw)
In-Reply-To: <20051121144538.GB14604@white>

Bob Rossi wrote:

>> 1. Can I get full file name in MI output somehow?
> 
> -file-list-exec-source-file

For the record, this is buggy in 6.3:

(gdb) interpreter mi -exec-step 
^running
(gdb) 
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x08048e3e",func="interpret_bytecode",args=[{name="data",value="0x8052180"}
{name="size",value="1776"}],file="interpreter/autogen/gen/interpreter.c",line="325"}
(gdb) 
(gdb) backtrace 
#0  interpret_bytecode (data=0x8052180, size=1776) at
interpreter/autogen/gen/interpreter.c:325
#1  0x0804c2ca in main (ac=2, av=0xbffff594) at
interpreter/target/x86/startup.c:48
(gdb) interpreter mi -file-list-exec-source-file 
^done,line="48",file="interpreter/target/x86/startup.c",fullname="/home/ghost/Work/Module/module_testing/interpreter/target/x86/startup.c"
(gdb) 

The file/line in output from -file-list-exec-source-file correspond to frame
#1, not frame #0, as expected.

Works fine in HEAD, though. Changing the order of "backtrace" and
"interpreter mi -file-list-exec-source-file" seems to fix the problem, too.

- Volodya






  parent reply	other threads:[~2005-11-23  9:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-21 14:44 Vladimir Prus
2005-11-21 14:46 ` Bob Rossi
2005-11-21 14:53   ` Vladimir Prus
2005-11-21 14:55     ` Bob Rossi
2005-11-21 15:07       ` Daniel Jacobowitz
2005-11-22  8:01         ` Anon CVS (Was: MI: full file name) Vladimir Prus
2005-11-22 12:10           ` Bob Rossi
2005-11-22 12:19             ` Vladimir Prus
2005-11-22 12:47               ` Andreas Schwab
2005-11-23 13:53   ` Vladimir Prus [this message]
2005-11-23 14:53     ` MI: full file name Daniel Jacobowitz
     [not found]     ` <7f89a3ea0512221820u4512e691x59d20442123d3086@mail.gmail.com>
2005-12-23  7:09       ` Vladimir Prus

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='dm1cp4$jqv$1@sea.gmane.org' \
    --to=ghost@cs.msu.su \
    --cc=gdb@sources.redhat.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