Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ddb When we hit a breakpoint in a process, print the pid...



details:   https://anonhg.NetBSD.org/src/rev/08334eb5f636
branches:  trunk
changeset: 500914:08334eb5f636
user:      jhawk <jhawk%NetBSD.org@localhost>
date:      Wed Dec 20 15:42:37 2000 +0000

description:
When we hit a breakpoint in a process, print the pid of the process as
well as the command name (p_comm) of the process.

diffstat:

 sys/ddb/db_trap.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r 2a2feb27d965 -r 08334eb5f636 sys/ddb/db_trap.c
--- a/sys/ddb/db_trap.c Wed Dec 20 14:53:23 2000 +0000
+++ b/sys/ddb/db_trap.c Wed Dec 20 15:42:37 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_trap.c,v 1.16 2000/07/18 20:51:07 jeffs Exp $       */
+/*     $NetBSD: db_trap.c,v 1.17 2000/12/20 15:42:37 jhawk Exp $       */
 
 /* 
  * Mach Operating System
@@ -69,11 +69,13 @@
            }
            if (curproc != NULL) {
                if (bkpt)
-                   db_printf("Breakpoint in %s at\t", curproc->p_comm);
+                       db_printf("Breakpoint");
                else if (watchpt)
-                   db_printf("Watchpoint in %s at\t", curproc->p_comm);
+                       db_printf("Watchpoint");
                else
-                   db_printf("Stopped in %s at\t", curproc->p_comm);
+                       db_printf("Stopped");
+               db_printf(" in pid %d (%s) at\t", curproc->p_pid,
+                   curproc->p_comm);
            } else if (bkpt)
                db_printf("Breakpoint at\t");
            else if (watchpt)



Home | Main Index | Thread Index | Old Index