MI: full file name

Vladimir Prus ghost@cs.msu.su
Mon Nov 21 14:44:00 GMT 2005


Hi,
I'm using gdb 6.3 and it seems like in MI mode, there's no way to get full
name of a source file on stop. Consider this session:

   $ gdb a.out -fullname
   ....
   (gdb) set annotate 1
   (gdb) interpreter mi "-exec-run"
   ^running
   (gdb)
   Hi
   *stopped,reason="breakpoint-hit",bkptno="1",thread-id="0",
    frame={addr="0x08048470",func="main",args=[],file="a.cpp",line="7"}
   (gdb)
   (gdb) r
   The program being debugged has been started already.
   Start it from the beginning? (y or n) y
   Starting program: /tmp/a.out
   Hi

   Breakpoint 1, main () at a.cpp:7
   б▒б▒/tmp/a.cpp:7:54:beg:0x8048470

As you see, in console mode, full name of the file is printed. In MI mode, I
see just "a.cpp". 

1. Can I get full file name in MI output somehow?
2. If not, any chance this will be fixed?

Thanks,
Volodya





More information about the Gdb mailing list