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").
This commit is contained in:
parent
5a969a2f85
commit
71ae396a29
@ -91,6 +91,7 @@ struct db_variable db_regs[] = {
|
||||
{ "r15", DB_OFFSET(tf_r15), db_frame },
|
||||
{ "rip", DB_OFFSET(tf_rip), db_frame },
|
||||
{ "rflags", DB_OFFSET(tf_rflags), db_frame },
|
||||
#define DB_N_SHOW_REGS 20 /* Don't show registers after here. */
|
||||
{ "dr0", NULL, db_dr0 },
|
||||
{ "dr1", NULL, db_dr1 },
|
||||
{ "dr2", NULL, db_dr2 },
|
||||
@ -100,7 +101,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 \
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user