* dwarf2read.c (free_dwo_file): Remove assert.
authorTom Tromey <tromey@redhat.com>
Tue, 29 Jan 2013 19:26:22 +0000 (19:26 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 29 Jan 2013 19:26:22 +0000 (19:26 +0000)
gdb/testsuite
* gdb.dwarf2/fission-reread.exp: Add unload test.

gdb/ChangeLog
gdb/dwarf2read.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/fission-reread.exp

index f7faa68..9b2193b 100644 (file)
@@ -1,5 +1,9 @@
 2013-01-29  Tom Tromey  <tromey@redhat.com>
 
+       * dwarf2read.c (free_dwo_file): Remove assert.
+
+2013-01-29  Tom Tromey  <tromey@redhat.com>
+
        * value.c (deprecated_set_value_modifiable): Remove.
        * value.h (deprecated_set_value_modifiable): Remove.
 
index 63c43eb..23e2dff 100644 (file)
@@ -9240,7 +9240,6 @@ free_dwo_file (struct dwo_file *dwo_file, struct objfile *objfile)
   int ix;
   struct dwarf2_section_info *section;
 
-  gdb_assert (dwo_file->dbfd != objfile->obfd);
   gdb_bfd_unref (dwo_file->dbfd);
 
   VEC_free (dwarf2_section_info_def, dwo_file->sections.types);
index 745c9ba..ba5fa5d 100644 (file)
@@ -1,3 +1,7 @@
+2013-01-29  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.dwarf2/fission-reread.exp: Add unload test.
+
 2013-01-28  Doug Evans  <dje@google.com>
 
        * gdb.dwarf2/fission-loclists.exp: New file.
index 5b013e3..0f06326 100644 (file)
@@ -32,3 +32,7 @@ gdb_test "break main" "Breakpoint.*at.*"
 
 # If we get this far gdb didn't crash, nor did an error occur.
 pass $testfile
+
+gdb_unload
+# If we get this far gdb didn't crash, nor did an error occur.
+pass "$testfile - unload"