From a5f4270a217d873468c858dae91303219bd76977 Mon Sep 17 00:00:00 2001 From: rvb Date: Fri, 14 Aug 1998 19:57:01 +0000 Subject: [PATCH] Print program name when entering the debugger --- sys/ddb/db_trap.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/ddb/db_trap.c b/sys/ddb/db_trap.c index 7f8398a188c0..46c57415b88b 100644 --- a/sys/ddb/db_trap.c +++ b/sys/ddb/db_trap.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_trap.c,v 1.9 1996/02/05 01:57:18 christos Exp $ */ +/* $NetBSD: db_trap.c,v 1.10 1998/08/14 19:57:01 rvb Exp $ */ /* * Mach Operating System @@ -59,6 +59,14 @@ db_trap(type, code) db_printf("After %d instructions (%d loads, %d stores),\n", db_inst_count, db_load_count, db_store_count); } + if ((int)curproc) { + if (bkpt) + db_printf("Breakpoint in %s at\t", curproc->p_comm); + else if (watchpt) + db_printf("Watchpoint in %s at\t", curproc->p_comm); + else + db_printf("Stopped in %s at\t", curproc->p_comm); + } else if (bkpt) db_printf("Breakpoint at\t"); else if (watchpt)