diff options
Diffstat (limited to 'gdb/corelow.c')
-rw-r--r-- | gdb/corelow.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c index 8f7a07b..65a672b 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -1055,10 +1055,12 @@ core_target_open (const char *arg, int from_tty) /* Own the target until it is successfully pushed. */ target_ops_up target_holder (target); - validate_files (); - current_inferior ()->push_target (std::move (target_holder)); + /* Validate files after pushing the core_target, this allows the + validate_files function to see the newly loaded core file. */ + validate_files (); + switch_to_no_thread (); /* Need to flush the register cache (and the frame cache) from a |