Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443820 - sys-devel/gdb cannot find (and doesn't look for) splitdebug symbols
Summary: sys-devel/gdb cannot find (and doesn't look for) splitdebug symbols
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-18 18:25 UTC by Peter Waller
Modified: 2012-11-19 09:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,5.16 KB, text/plain)
2012-11-18 18:25 UTC, Peter Waller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Waller 2012-11-18 18:25:06 UTC
Created attachment 329874 [details]
emerge --info

/usr/lib/debug/usr/lib64/libpython2.7.so.1.0.debug does exist

$ objdump -s -j .gnu_debuglink /usr/lib64/libpython2.7.so

/usr/lib64/libpython2.7.so:     file format elf64-x86-64

Contents of section .gnu_debuglink:
 0000 6c696270 7974686f 6e322e37 2e736f2e  libpython2.7.so.
 0010 312e302e 64656275 67000000 9ede5e96  1.0.debug.....^.

But gdb does not find (or even search for) the split debug symbols. I've tried both 7.3.1 and 7.5 and get the same behaviour.

Running strace through gdb and grepping I see only two references to "/debug".

I thought this was supposed to work automatically? Am I missing something? Do I need to specifically enable it?
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-19 09:47:25 UTC
Shouldn't you also have added -g(/gdb) to CFLAGS/CXXFLAGS, then?
Comment 2 Peter Waller 2012-11-19 09:58:13 UTC
Wow, that did the trick. I feel stupid. Thanks, Jeroen.

I naively expected the splitdebug feature to add whatever flags it might need.