Subject: toolchain/34194: gdb "info threads" does not work
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 08/13/2006 09:45:00
>Number:         34194
>Category:       toolchain
>Synopsis:       gdb "info threads" does not work
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 13 09:45:00 +0000 2006
>Originator:     Martin Husemann
>Release:        NetBSD 4.99.1
>Organization:
>Environment:
System: NetBSD nelly.aprisoft.de 4.99.1 NetBSD 4.99.1 (NELLY) #38: Fri Aug 11 13:28:18 CEST 2006 martin@nelly.aprisoft.de:/usr/src/sys/arch/sparc64/compile/NELLY sparc64
Architecture: sparc64
Machine: sparc64
>Description:

To test the new gdb I set HAVE_GDB=6 and did a build.sh, which worked fine.
The resulting gdb works pretty well, but when debugging threaded apps, it
does never show any threads (though it can break in different threads and
show the local variables just fine).

>How-To-Repeat:

Run a -pthread linked program using pthread_create, add a breakpoint in some
thread, run it under gdb and type "info threads". Output is empty (at least
on sparc64)

>Fix:
n/a