diff options
-rw-r--r-- | gdb/symfile.c | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/dump.exp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 3fd6c8d..28c0d46 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -901,6 +901,10 @@ syms_from_objfile_1 (struct objfile *objfile, int num_sections = gdb_bfd_count_sections (objfile->obfd.get ()); objfile->section_offsets.assign (num_sections, 0); + + /* Release the objfile unique pointer, since nothing went wrong + in reading it. */ + objfile_holder.release (); return; } diff --git a/gdb/testsuite/gdb.base/dump.exp b/gdb/testsuite/gdb.base/dump.exp index 3c7bee5..58fedb1 100644 --- a/gdb/testsuite/gdb.base/dump.exp +++ b/gdb/testsuite/gdb.base/dump.exp @@ -564,7 +564,3 @@ if {![string compare $is64bitonly "no"]} { "reload struct as memory, tekhex" \ $struct_val "\*$struct_ptr_type" } - -# clean up files - -remote_exec host "rm -f $filenames" |