Re: [patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename)

iam ahal
2012-03-25T19:27:08Z

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