From bd87d530432bb59e0e8e9945eb3552c2580af213 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Mon, 7 Nov 2016 00:26:34 +0000 Subject: Split PID from TID, giving processes a PID unrelated to the TID of their initial thread ok jsing@ kettenis@ --- sys/arch/sparc64/sparc64/db_interface.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/arch/sparc64') 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); } -- cgit v1.2.3