Subject: Re: Problems with gdb and threads
To: None <current-users@netbsd.org>
From: Michael van Elst <mlelstv@serpens.de>
List: current-users
Date: 08/21/2005 09:51:15
M.Drochner@fz-juelich.de (Matthias Drochner) writes:
>nathanw@wasabisystems.com said:
>> Try reverting rev 1.15 of src/gnu/dist/gdb/gdb/nbsd-thread.c
>There is some confusion whete the magic +1 offset between NetBSD
>LIDs and gdb tids is compensated for. The interface could need
>some cleanup...

If I see this correctly then NetBSD-3_BETA does use rev 1.15
but shows the same problem:

% gdb a.out
GNU gdb 5.3nb1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386--netbsdelf"...
(gdb) break main
Breakpoint 1 at 0x8048878: file c.c, line 19.
(gdb) run
Starting program: /home/mlelstv/a.out 
thread_resume_suspend_cb: td_thr_suspend(0x82ba440): generic error.
[Switching to LWP 1]
Stopped due to shared library event
(gdb) c
Continuing.
thread_resume_suspend_cb: td_thr_suspend(0x82ba440): generic error.
0xbdbf743c in _rtld_debug_state () from /usr/libexec/ld.elf_so
(gdb) c
Continuing.
thread_resume_suspend_cb: td_thr_suspend(0x82ba440): generic error.
0xbdbf743c in _rtld_debug_state () from /usr/libexec/ld.elf_so
(gdb) 


-- 
-- 
                                Michael van Elst
Internet: mlelstv@serpens.de
                                "A potential Snark may lurk in every tree."