aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-main.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2010-03-18 13:25:20 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2010-03-18 13:25:20 +0000
commit441b986a3db402d0205ef60d0a0efa9463cd2c47 (patch)
treeab4b4640f3d25cd5bd55ccd2a759b14d4e1ed3e4 /gdb/mi/mi-main.c
parent4247603be536b5ff74624da45e486c369e995f82 (diff)
downloadgdb-441b986a3db402d0205ef60d0a0efa9463cd2c47.zip
gdb-441b986a3db402d0205ef60d0a0efa9463cd2c47.tar.gz
gdb-441b986a3db402d0205ef60d0a0efa9463cd2c47.tar.bz2
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.
Diffstat (limited to 'gdb/mi/mi-main.c')
-rw-r--r--gdb/mi/mi-main.c4
1 files changed, 1 insertions, 3 deletions
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");