From 71ae396a2994e4716194790e1ecc32d89e147452 Mon Sep 17 00:00:00 2001 From: bde Date: Fri, 20 Oct 2006 09:44:21 +0000 Subject: Don't show debug registers in "show registers". Special registers should be displayed specially, and debug registers are among of the least interesting special registers (far behind %cr3). The debug registers are still accessible as variables and displayed in another bogus place ("show watches"). --- sys/i386/i386/db_trace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/i386') diff --git a/sys/i386/i386/db_trace.c b/sys/i386/i386/db_trace.c index c3ea8ac..3bcb795 100644 --- a/sys/i386/i386/db_trace.c +++ b/sys/i386/i386/db_trace.c @@ -80,6 +80,7 @@ struct db_variable db_regs[] = { { "edi", DB_OFFSET(tf_edi), db_frame }, { "eip", DB_OFFSET(tf_eip), db_frame }, { "efl", DB_OFFSET(tf_eflags), db_frame }, +#define DB_N_SHOW_REGS 15 /* Don't show registers after here. */ { "dr0", NULL, db_dr0 }, { "dr1", NULL, db_dr1 }, { "dr2", NULL, db_dr2 }, @@ -89,7 +90,7 @@ struct db_variable db_regs[] = { { "dr6", NULL, db_dr6 }, { "dr7", NULL, db_dr7 }, }; -struct db_variable *db_eregs = db_regs + sizeof(db_regs)/sizeof(db_regs[0]); +struct db_variable *db_eregs = db_regs + DB_N_SHOW_REGS; #define DB_DRX_FUNC(reg) \ static int \ -- cgit v1.1