diff options
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index a96d43ce..aa176f7 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -23,6 +23,7 @@ /* Work in progress. */ #include "defs.h" +#include "arch-utils.h" #include "target.h" #include "inferior.h" #include "gdb_string.h" @@ -828,7 +829,7 @@ mi_cmd_data_evaluate_expression (char *command, char **argv, int argc) void mi_cmd_data_read_memory (char *command, char **argv, int argc) { - struct gdbarch *gdbarch = current_gdbarch; + struct gdbarch *gdbarch = get_current_arch (); struct cleanup *cleanups = make_cleanup (null_cleanup, NULL); CORE_ADDR addr; long total_bytes; |