NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/48730: shared libraries built with -g do not contain debugging symbols

On Apr 9,  4:37pm, (Antti Kantee) wrote:
-- Subject: Re: toolchain/48730: shared libraries built with -g do not contai

| On 09/04/14 16:30, Christos Zoulas wrote:
| >   | make DBG=-g produces a shared library without debugging symbols.
| >
| >   Does:
| >
| >       MKDEBUG=yes
| >
| >   work?
| According to riastradh on irc, it does not.

That is hearsay:

$ gdb /bin/ls
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
For bug reporting instructions, please see:
Reading symbols from /bin/ls...Reading symbols from 
(gdb) break write
Function "write" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (write) pending.
(gdb) r
Starting program: /bin/ls 

Breakpoint 1, 0x00007f7ff703bc60 in write () from /lib/
(gdb) up
#1  0x00007f7ff710bebd in __sflush (fp=fp@entry=0x605518 <__sF+152>)
    at /net/quasar/src-5/NetBSD/src/lib/libc/stdio/fflush.c:107
107                     t = (*fp->_write)(fp->_cookie, (char *)p, n);
(gdb) quit


Home | Main Index | Thread Index | Old Index