X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Fcorelow.c;h=5e9634e9d79195760cb816caf1de5903777ccfca;hb=04c72a68e073e54aabbec004154f45fdb4026d3d;hp=3ce612d31b429ab36562f5e5be082479339776d3;hpb=9ab8741a48294e19d514721c710c81bba46db7f2;p=external%2Fbinutils.git diff --git a/gdb/corelow.c b/gdb/corelow.c index 3ce612d..5e9634e9 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -42,7 +42,7 @@ #include "objfiles.h" #include "gdb_bfd.h" #include "completer.h" -#include "common/filestuff.h" +#include "gdbsupport/filestuff.h" #ifndef O_LARGEFILE #define O_LARGEFILE 0 @@ -56,7 +56,8 @@ static core_fns *sniff_core_bfd (gdbarch *core_gdbarch, static const target_info core_target_info = { "core", N_("Local core dump file"), - N_("Use a core file as a target. Specify the filename of the core file.") + N_("Use a core file as a target.\n\ +Specify the filename of the core file.") }; class core_target final : public process_stratum_target @@ -535,6 +536,8 @@ core_target::detach (inferior *inf, int from_tty) 'this'. */ unpush_target (this); + /* Clear the register cache and the frame cache. */ + registers_changed (); reinit_frame_cache (); maybe_say_no_core_file_now (from_tty); }