diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1994-10-02 19:36:30 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1994-10-02 19:36:30 +0000 |
| commit | 45a0b8946847278eb6106b4662d39089527de426 (patch) | |
| tree | 4b164dc10241f335bd040f1659f7978e95f52e5b /sys/ddb | |
| parent | 336f97b7ad548190ce712babe584a7bd1572a39f (diff) | |
Notes
Diffstat (limited to 'sys/ddb')
| -rw-r--r-- | sys/ddb/db_trap.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/sys/ddb/db_trap.c b/sys/ddb/db_trap.c index 8d2941ab5f88..bc65ed976242 100644 --- a/sys/ddb/db_trap.c +++ b/sys/ddb/db_trap.c @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: db_trap.c,v 1.4 1994/08/13 03:49:24 wollman Exp $ + * $Id: db_trap.c,v 1.5 1994/08/18 22:34:27 wollman Exp $ */ /* @@ -57,14 +57,17 @@ db_trap(type, code) db_printf("After %d instructions (%d loads, %d stores),\n", db_inst_count, db_load_count, db_store_count); } - if (bkpt) - db_printf("Breakpoint at\t"); - else if (watchpt) - db_printf("Watchpoint at\t"); - else - db_printf("Stopped at\t"); db_dot = PC_REGS(DDB_REGS); - db_print_loc_and_inst(db_dot); + if(db_dot) { + if (bkpt) + db_printf("Breakpoint at\t"); + else if (watchpt) + db_printf("Watchpoint at\t"); + else + db_printf("Stopped at\t"); + + db_print_loc_and_inst(db_dot); + } db_command_loop(); } |
