diff options
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/value.c b/gdb/value.c index fb8da3e..4632ae4 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "defs.h" +#include "arch-utils.h" #include "gdb_string.h" #include "symtab.h" #include "gdbtypes.h" @@ -1448,7 +1449,7 @@ preserve_values (struct objfile *objfile) static void show_convenience (char *ignore, int from_tty) { - struct gdbarch *gdbarch = current_gdbarch; + struct gdbarch *gdbarch = get_current_arch (); struct internalvar *var; int varseen = 0; struct value_print_options opts; |