From 829b4a72cc7d0d5b650461921d2b3f748e016e34 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Sun, 6 Mar 2016 13:33:22 +0000 Subject: DDB_REGS -> &ddb_regs. All our archs use the same define. --- sys/ddb/db_print.c | 4 ++-- sys/ddb/db_trap.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sys') diff --git a/sys/ddb/db_print.c b/sys/ddb/db_print.c index a5b0028a511..85ded7b8990 100644 --- a/sys/ddb/db_print.c +++ b/sys/ddb/db_print.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_print.c,v 1.16 2016/01/25 14:30:30 mpi Exp $ */ +/* $OpenBSD: db_print.c,v 1.17 2016/03/06 13:33:21 mpi Exp $ */ /* $NetBSD: db_print.c,v 1.5 1996/02/05 01:57:11 christos Exp $ */ /* @@ -65,5 +65,5 @@ db_show_regs(db_expr_t addr, int have_addr, db_expr_t count, char *modif) } db_printf("\n"); } - db_print_loc_and_inst(PC_REGS(DDB_REGS)); + db_print_loc_and_inst(PC_REGS(&ddb_regs)); } diff --git a/sys/ddb/db_trap.c b/sys/ddb/db_trap.c index bea2d8d693e..f70faebf0e3 100644 --- a/sys/ddb/db_trap.c +++ b/sys/ddb/db_trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trap.c,v 1.24 2016/01/25 14:30:30 mpi Exp $ */ +/* $OpenBSD: db_trap.c,v 1.25 2016/03/06 13:33:21 mpi Exp $ */ /* $NetBSD: db_trap.c,v 1.9 1996/02/05 01:57:18 christos Exp $ */ /* @@ -56,7 +56,7 @@ db_trap(int type, int code) bkpt = IS_BREAKPOINT_TRAP(type, code); watchpt = IS_WATCHPOINT_TRAP(type, code); - if (db_stop_at_pc(DDB_REGS, &bkpt)) { + if (db_stop_at_pc(&ddb_regs, &bkpt)) { if (db_inst_count) { db_printf("After %d instructions\n", db_inst_count); } @@ -66,7 +66,7 @@ db_trap(int type, int code) db_printf("Watchpoint at\t"); else db_printf("Stopped at\t"); - db_dot = PC_REGS(DDB_REGS); + db_dot = PC_REGS(&ddb_regs); db_print_loc_and_inst(db_dot); if (panicstr != NULL) { @@ -93,6 +93,6 @@ db_trap(int type, int code) db_command_loop(); } - db_restart_at_pc(DDB_REGS, watchpt); + db_restart_at_pc(&ddb_regs, watchpt); db_is_active = 0; } -- cgit v1.2.3