aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/kdb.h
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2004-07-21 04:49:48 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2004-07-21 04:49:48 +0000
commit3d4f3136950aa42a91dd2c6842d6d1ca1739ad9d (patch)
tree8bb8c899f61b15dd7d1cdb0376018b2ee69e8603 /sys/sys/kdb.h
parent09281f58ed7fc40a9d8f35f428b6e74b806e3e65 (diff)
downloadsrc-3d4f3136950aa42a91dd2c6842d6d1ca1739ad9d.tar.gz
src-3d4f3136950aa42a91dd2c6842d6d1ca1739ad9d.zip
Add kdb_thr_from_pid(), which given a PID returns the first thread
in the process. This is useful when working from or with a process.
Notes
Notes: svn path=/head/; revision=132481
Diffstat (limited to 'sys/sys/kdb.h')
-rw-r--r--sys/sys/kdb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/kdb.h b/sys/sys/kdb.h
index 6a1b8f7d8f4c..55a88f42f86b 100644
--- a/sys/sys/kdb.h
+++ b/sys/sys/kdb.h
@@ -71,7 +71,8 @@ void * kdb_jmpbuf(jmp_buf);
void kdb_reenter(void);
struct pcb *kdb_thr_ctx(struct thread *);
struct thread *kdb_thr_first(void);
-struct thread *kdb_thr_lookup(pid_t);
+struct thread *kdb_thr_from_pid(pid_t);
+struct thread *kdb_thr_lookup(lwpid_t);
struct thread *kdb_thr_next(struct thread *);
int kdb_thr_select(struct thread *);
int kdb_trap(int, int, struct trapframe *);