From 441b986a3db402d0205ef60d0a0efa9463cd2c47 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 18 Mar 2010 13:25:20 +0000 Subject: [PATCH] ChangeLog: * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch instead of selected frame architecture. testsuite/ChangeLog: * gdb.mi/gdb680.exp: Revert 2009-06-17 change. --- gdb/ChangeLog | 5 +++++ gdb/mi/mi-main.c | 4 +--- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.mi/gdb680.exp | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e5e8ae2..576eb18 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-03-18 Ulrich Weigand + + * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch + instead of selected frame architecture. + 2010-03-18 Pedro Alves * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index f0b2f32..4e31c72 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -852,7 +852,6 @@ mi_cmd_list_thread_groups (char *command, char **argv, int argc) void mi_cmd_data_list_register_names (char *command, char **argv, int argc) { - struct frame_info *frame; struct gdbarch *gdbarch; int regnum, numregs; int i; @@ -864,8 +863,7 @@ mi_cmd_data_list_register_names (char *command, char **argv, int argc) In this case, some entries of gdbarch_register_name will change depending upon the particular processor being debugged. */ - frame = get_selected_frame (NULL); - gdbarch = get_frame_arch (frame); + gdbarch = get_current_arch (); numregs = gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch); cleanup = make_cleanup_ui_out_list_begin_end (uiout, "register-names"); diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ad46ecf..efa22d9 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-03-18 Ulrich Weigand + + * gdb.mi/gdb680.exp: Revert 2009-06-17 change. + 2010-03-18 Pedro Alves * gdb.base/default.exp: Adjust the expected output of the finish diff --git a/gdb/testsuite/gdb.mi/gdb680.exp b/gdb/testsuite/gdb.mi/gdb680.exp index 0acad33..2ada5b9 100644 --- a/gdb/testsuite/gdb.mi/gdb680.exp +++ b/gdb/testsuite/gdb.mi/gdb680.exp @@ -27,7 +27,7 @@ if [mi_gdb_start] { proc do_test {count} { mi_gdb_test "-data-list-register-names -1" \ - {\^error,msg=\"No registers.\"} \ + {\^error,msg=\"bad register number\"} \ "-data-list-register-names -1, try $count" } -- 2.7.4