Subject: CVS commit: [netbsd-2] src/lib/libpthread_dbg
To: None <source-changes@NetBSD.org>
From: Jeff Rizzo <riz@netbsd.org>
List: source-changes
Date: 05/18/2005 18:40:26
Module Name:	src
Committed By:	riz
Date:		Wed May 18 18:40:26 UTC 2005

Modified Files:
	src/lib/libpthread_dbg [netbsd-2]: pthread_dbg.c

Log Message:
Pull up revision 1.17 (requested by matt in ticket #1526):
1.17:
Add td_thr_suspend() and td_thr_resume(), to suspend and resume
threads from the context of a debugger.

1.18:
td_map_lwps(): there's always one lwp. This makes the call work before
the thread system has started.

Additionally, mark not-on-LWP threads explicitly, so that there's no
risk of using stale information.

1.19:
Add support for reporting and examining suspended threads.

1.20:
Add an offset to the thread ID numbers, because GDB really doesn't
cope with "thread 0".

1.21:
Update cached LWP values when suspending the running thread.

1.22:
Get the td_thread_t * corresponding to nthread to mess with its lwp
data, rather than trying a nonsensical operation on a caddr_t from a
different address space.

Moral: test-compile in the same tree you're working in.


To generate a diff of this commit:
cvs rdiff -r1.16 -r1.16.4.1 src/lib/libpthread_dbg/pthread_dbg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.