Re: No debug info for statically linked stuff

2016-06-03 Thread Ed Maste
On 3 June 2016 at 12:49, Eric van Gyzen  wrote:
> I'm running head from Tuesday (r301045).  I just noticed that "ar" is
> missing the debuginfo for libarchive:

I discussed this with Eric off this thread, but for the sake of others
this is happening because WITH_DEBUG_FILES enables -g when building
binaries and shared libs, but doesn't make any change for static
libraries.

Presumably we want WITH_DEBUG_FILES to just enable -g when building
static libs as well (and avoid stripping on install). Probably need to
leave it disabled for the Clang/LLVM/LLDB libs, because enabling that
would add a significant amount of time to buildworld. I think GNU ld
2.17.50 might not even be able to link a debug build of Clang on i386.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


No debug info for statically linked stuff

2016-06-03 Thread Eric van Gyzen
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 = {} 0x406be0


Is this a known issue?

Has libarchive.a already been stripped when ar is linked?

Eric

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"