diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-11-07 00:26:34 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-11-07 00:26:34 +0000 |
commit | bd87d530432bb59e0e8e9945eb3552c2580af213 (patch) | |
tree | 094ceb36ef2db9352c5687de586c5176477f3c21 /sys/arch/sparc64 | |
parent | 174c1a4b3e7ca128b5540d3419d42f4d056e96af (diff) |
Split PID from TID, giving processes a PID unrelated to the TID of their
initial thread
ok jsing@ kettenis@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/sparc64/db_interface.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sparc64/sparc64/db_interface.c b/sys/arch/sparc64/sparc64/db_interface.c index 039da18b58e..eb84bb99838 100644 --- a/sys/arch/sparc64/sparc64/db_interface.c +++ b/sys/arch/sparc64/sparc64/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.46 2016/10/18 00:43:57 guenther Exp $ */ +/* $OpenBSD: db_interface.c,v 1.47 2016/11/07 00:26:33 guenther Exp $ */ /* $NetBSD: db_interface.c,v 1.61 2001/07/31 06:55:47 eeh Exp $ */ /* @@ -1062,23 +1062,23 @@ db_setpcb(addr, have_addr, count, modif) struct proc *p; if (!have_addr) { - db_printf("What PID do you want to map in?\n"); + db_printf("What TID do you want to map in?\n"); return; } LIST_FOREACH(p, &allproc, p_list) { - if (p->p_stat && p->p_pid == addr) { + if (p->p_stat && p->p_tid == addr) { curproc = p; curpcb = (struct pcb*)p->p_addr; if (p->p_vmspace->vm_map.pmap->pm_ctx) { switchtoctx(p->p_vmspace->vm_map.pmap->pm_ctx); return; } - db_printf("PID %ld has a null context.\n", addr); + db_printf("TID %ld has a null context.\n", addr); return; } } - db_printf("PID %ld not found.\n", addr); + db_printf("TID %ld not found.\n", addr); } |