Bug 22434 - dwarf2.c doesn't use debug info specified by DW_AT_GNU_dwo_name
Summary: dwarf2.c doesn't use debug info specified by DW_AT_GNU_dwo_name
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.29
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-13 21:41 UTC by Andi Kleen
Modified: 2017-11-14 04:28 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed: 2017-11-14 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andi Kleen 2017-11-13 21:41:36 UTC
$ cat tinline.c

int i;

static inline int finline(void)
{  
        i++;
}
 
main()
{  
        finline();
}
 
$ gcc -O2 -gsplit-dwarf tinline.c
$ addr2line -i -e a.out 0x4003b0
/home/ak/tsrc/tinline.c:6
$ gcc -O2  -g tinline.c
$ addr2line -i -e a.out 0x4003b0
/home/ak/tsrc/tinline.c:6
/home/ak/tsrc/tinline.c:12
$

Similar with objdump. Happens on mainline too.

This currently affects the Linux kernel.
Comment 1 H.J. Lu 2017-11-14 04:19:34 UTC
dwarf2.c supports alternate debug info source, just not DW_AT_GNU_dwo_name.