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

GDB DOES do threads. [was Re: Debian's GDB still can't handle threads!]



The current gdb in potato DOES in fact handle threads.  However, since
libpthread.so is stripped, it doesn't work.  If you install libc6-dbg and set
LD_LIBRARY_PATH to /usr/lib/libc_debug, it works just fine.

This solution, IMHO, sucks.  libpthread should be stripped with --strip-debug,
not --strip-unneeded.  File size savings is a whole 15 k.  Installing the
libc6-dbg packages so gdb is useful means an additional 8.8 M on the system. 
Being able to debug threads, and getting _useful_ backtraces from people with 
standard potato installations is much better than saving 15 measly k's in the
main distro.

Isaac

On 21-Oct-99 Vincent Renardias wrote:
> I tried to apply gdb-4.18-threads.patch a while ago but failed. If someone
> can do it, I'd be glad to integrate their patch (hint, hint).
> On the other hand, reverting to 4.17 is not an option (4.18 fixes a lot of
> bugs) and forking is not an option either.
> 
>       Cordialement,


Reply to: