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 <gson%gson.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: christos%NetBSD.org@localhost
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 @127.0.0.177
cont
cont
cont
cont
cont
EOF
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.01.20.18.18.07 christos src/lib/libpthread_dbg/pthread_dbg.c 1.41
2013.01.20.18.18.07 christos src/lib/libpthread_dbg/pthread_dbg_int.h 1.7
And it was reintroduced in October 2013 between source dates
2013.10.03.13.40.26 and 2013.10.04.15.24.44, which coincides with
the import of gdb 7.4.1.
--
Andreas Gustafsson, gson%gson.org@localhost
Home |
Main Index |
Thread Index |
Old Index