I need the debug symbols for libc
on Ubuntu 20.04 for performance profiling in gperftools
(or perf). I checked how to install them and used:
sudo apt-get install libc6-dbg
After successfull Installation I don't find any libc related files in /usr/lib/debug
. What could be the issue?
purge
and repeated install
did not help.
The version of libc shown matches my system version 2.31-0ubuntu9.15
.
I found this thread which seems related How to Install Debug Symbols for libc on Ubuntu 22.04?. The only answer points to this forum entry https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1918035.
When I search for the debug info that way I get an entry in a hidden folder. However I'm not sure what to do with it:
$ dpkg -L libc6-dbg | grep $(readelf -n /lib/x86_64-linux-gnu/ld-2.31.so | grep 'Build ID' | awk '{print $3}' | cut -c 3-)/usr/lib/debug/.build-id/c9/a47e328eb2f1f41bcbcf31f9c11b9e17aa2a83.debug