mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* corelow.c (core_open): Only call set_gdbarch_from_file if
exec_bfd is NULL.
This commit is contained in:
@ -321,7 +321,12 @@ core_open (char *filename, int 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);
|
||||
/* If we have no exec file, try to set the architecture from the
|
||||
core file. We don't do this unconditionally since an exec file
|
||||
typically contains more information that helps us determine the
|
||||
architecture than a core file. */
|
||||
if (!exec_bfd)
|
||||
set_gdbarch_from_file (core_bfd);
|
||||
|
||||
ontop = !push_target (&core_ops);
|
||||
discard_cleanups (old_chain);
|
||||
|
Reference in New Issue
Block a user