NetBSD-Bugs archive

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

Re: lib/51636: It's not possible to run under gdb(1) programs using the pthread_dbg library



The following reply was made to PR lib/51636; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: lib/51636: It's not possible to run under gdb(1) programs using the pthread_dbg library
Date: Sat, 19 Nov 2016 20:13:05 +0100

 On Sat, Nov 19, 2016 at 06:25:00PM +0000, n54%gmx.com@localhost wrote:
 > As the result it's not possible to run under gdb(1) programs using the pthread_dbg library
 
 Not sure this would be easy to fix (or worth any complication in the library
 interface) - a "simple" hack around it if you just want to debug something:
 
  - add a define to rename all entry points slightly (ideally both for lib
    and users)
  - recompile the lib with that macro defined and link it with a different
    target name
  - compile the app with the rename macro and against the renamed lib
 
 Then you should be able to debug the result just fine.
 
 Martin
 


Home | Main Index | Thread Index | Old Index