This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to change DW_AT_name in debug info of dwarf format
- From: aking <jinxin16897123 at 163 dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 10 Nov 2013 23:08:51 +0800
- Subject: How to change DW_AT_name in debug info of dwarf format
- Authentication-results: sourceware.org; auth=none
Hi, all
I'm compiling project using gcc, it generate dwarf info :
...
<74cb> DW_AT_name : (indirect string, offset: 0x1a6a): board.c
<74cf> DW_AT_comp_dir : (indirect string, offset: 0x2689):
/root/file/u-boot/u-boot-am33x/arch/arm/lib
...
what option should be add to change DW_AT_name from "board.c" to
"/root/file/u-boot/u-boot-am33x/arch/arm/lib/board.c" ? which means
DW_AT_name contains full path of the source file?