This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename)
To Eli Zaretskii:
The difference between "basename" and "relative" is:
"basename" option just cuts directory part from 'DW_AT_name'.
"relative" option cuts 'DW_AT_comp_dir' part from 'DW_AT_name' If and
only if 'DW_AT_name' contains 'DW_AT_comp_dir' part at the beginning.
Quite frankly, I don't know how exactly make records like this:
<11> DW_AT_name : (indirect string, offset: 0x1e):
/home/username/contrib/test/prog.c
<15> DW_AT_comp_dir : (indirect string, offset: 0x0):
/home/username/contrib/
Jan Kratochvil:
Where I can see 'dw2-dir-file-name.exp'? I didn't find this file.
~Eldar