This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MI: full file name


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






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]