NetBSD-Bugs archive

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

Re: bin/47430: gdb can't debug threaded programs

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

From: Andreas Gustafsson <>
Subject: Re: bin/47430: gdb can't debug threaded programs
Date: Sun, 2 Feb 2014 13:04:47 +0200

 [Second attempt, the first one got sent prematurely...]
 I ran a couple of automated bisections on i386 to determine when this
 bug was first fixed and when it regressed.
 The success criterion was that the following shell script
 should exit with a zero exit status:
 cat <<EOF >test.gdb
 run +time=1 +tries=1 @
 gdb --batch -x test.gdb dig >gdb.out
 cat gdb.out
 ! grep "Program received signal SIGTRAP" gdb.out
 Based on this criterion, the bug was fixed by christos in 
 January 2013 with these commits:
   2013. christos src/lib/libpthread_dbg/pthread_dbg.c 1.41
   2013. christos src/lib/libpthread_dbg/pthread_dbg_int.h 1.7
 And it was reintroduced in October 2013 between source dates
 2013. and 2013., which coincides with
 the import of gdb 7.4.1.
 Andreas Gustafsson,

Home | Main Index | Thread Index | Old Index