[patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename)
iam ahal
hal9000ed2k@gmail.com
Sun Mar 18 18:30:00 GMT 2012
I've fixed patch and news carefully by your notes.
To Jan Kratochvil, Yuanhui Zhang:
I've included absolute filename option to my patch.
Eli Zaretskii:
Here is an example of working with "relative filename" option:
$ gcc -Wall -g ~/Downloads/contrib/prog.c
$ ./gdb-7.4/gdb/gdb ./a.out
(gdb) backtrace
#0 main () at /home/unknown/Downloads/contrib/prog.c:3
(gdb) set backtrace filename-display relative
(gdb) backtrace
#0 main () at prog.c:3
As I remember the difference between "basename" and "relative" option
was explained some time ago in this thread.
~Eldar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChangeLog
Type: application/octet-stream
Size: 796 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120318/8d3a5015/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChangeLog-doc
Type: application/octet-stream
Size: 166 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120318/8d3a5015/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-filename-display.patch
Type: text/x-patch
Size: 6730 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120318/8d3a5015/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NEWS
Type: application/octet-stream
Size: 173 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120318/8d3a5015/attachment-0002.obj>
More information about the Gdb-patches
mailing list