aboutsummaryrefslogtreecommitdiff
path: root/gdb/corelow.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/corelow.c')
-rw-r--r--gdb/corelow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c
index d5998f4..adcfe90 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -318,6 +318,8 @@ core_open (filename, from_tty)
error ("\"%s\": Can't find sections: %s",
bfd_get_filename (core_bfd), bfd_errmsg (bfd_get_error ()));
+ set_gdbarch_from_file (core_bfd);
+
ontop = !push_target (&core_ops);
discard_cleanups (old_chain);