From 28b41c52e23d1513024c400ca339902a7b1b2d9a Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 12 Sep 2004 15:00:42 +0000 Subject: [PATCH] Index: ChangeLog 2004-09-12 Salvador E. Tropea Andrew Cagney * mi/mi-main.c (mi_cmd_data_list_changed_registers) (mi_cmd_data_list_register_values) (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in the register number computation. --- gdb/ChangeLog | 8 ++++++++ gdb/mi/mi-main.c | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 759dd8f8d65..3c9c9cc2655 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2004-09-12 Salvador E. Tropea + Andrew Cagney + + * mi/mi-main.c (mi_cmd_data_list_changed_registers) + (mi_cmd_data_list_register_values) + (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in + the register number computation. + 2004-09-12 Andrew Cagney * ppcnbsd-nat.c: Include "inf-ptrace.h". diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index e373554621c..6961992d548 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -327,7 +327,7 @@ mi_cmd_data_list_changed_registers (char *command, char **argv, int argc) case, some entries of REGISTER_NAME will change depending upon the particular processor being debugged. */ - numregs = NUM_REGS; + numregs = NUM_REGS + NUM_PSEUDO_REGS; cleanup = make_cleanup_ui_out_list_begin_end (uiout, "changed-registers"); @@ -423,7 +423,7 @@ mi_cmd_data_list_register_values (char *command, char **argv, int argc) case, some entries of REGISTER_NAME will change depending upon the particular processor being debugged. */ - numregs = NUM_REGS; + numregs = NUM_REGS + NUM_PSEUDO_REGS; if (argc == 0) { @@ -563,7 +563,7 @@ mi_cmd_data_write_register_values (char *command, char **argv, int argc) case, some entries of REGISTER_NAME will change depending upon the particular processor being debugged. */ - numregs = NUM_REGS; + numregs = NUM_REGS + NUM_PSEUDO_REGS; if (argc == 0) { -- 2.30.2