No debug info for statically linked stuff
Eric van Gyzen
vangyzen at FreeBSD.org
Fri Jun 3 16:49:44 UTC 2016
I'm running head from Tuesday (r301045). I just noticed that "ar" is
missing the debuginfo for libarchive:
$ /usr/local/bin/gdb /usr/bin/ar
GNU gdb (GDB) 7.11 [GDB v7.11 for FreeBSD]
[...]
Reading symbols from /usr/bin/ar...Reading symbols from
/usr/lib/debug//usr/bin/ar.debug...done.
done.
(gdb) ptype struct archive
No struct type named archive.
(gdb) p archive_write_open_filename
$1 = {<text variable, no debug info>} 0x406be0
<archive_write_open_filename>
Is this a known issue?
Has libarchive.a already been stripped when ar is linked?
Eric
More information about the freebsd-current
mailing list