No debug info for statically linked stuff

From: Eric van Gyzen <vangyzen_at_FreeBSD.org>
Date: Fri, 3 Jun 2016 11:49:39 -0500
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
Received on Fri Jun 03 2016 - 14:49:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:05 UTC