This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
MI: full file name
- From: Vladimir Prus <ghost at cs dot msu dot su>
- To: gdb at sources dot redhat dot com
- Date: Mon, 21 Nov 2005 17:38:21 +0300
- Subject: MI: full file name
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