Subject: toolchain/23393: gdb does not work for threaded programs on sparc64
To: None <firstname.lastname@example.org>
From: Martin Husemann <email@example.com>
Date: 11/08/2003 12:35:17
>Synopsis: gdb does not work for threaded programs on sparc64
>Arrival-Date: Sat Nov 08 11:36:00 UTC 2003
>Originator: Martin Husemann
>Release: NetBSD 1.6ZE
System: NetBSD sunny-weather.duskware.de 1.6ZE NetBSD 1.6ZE (SUNNY) #9: Thu Nov 6 18:16:40 CET 2003 firstname.lastname@example.org:/usr/src/sys/arch/sparc64/compile/SUNNY sparc64
Debugging threaded programs on sparc64 is impossible with the in-tree gdb 5.3.
It can't get at any register values (which is probably the root cause of it
all), doesn't properly map LWPs to threads and basically imedaitely crashes
with a bus error once you try to examine anything.
This used to work better before the new NetBSD thread support went in - while
it couldn't find the proper thread back then, it would at least show valid
Try to run gdb on a pthreaded program.