* 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 f7faa68783222246f92a4f5aec5ec9cffcbfd7d3..9b2193bba1be0402e7a34e2e517ad374ef45fb1b 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 63c43eb990df075fd57fd89f98787c54e3283e0f..23e2dffdda85dd4f5d48baebe24f5f94507e3744 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 745c9ba0f12062d82d06e88c2b1ebd40c3bc6c2d..ba5fa5d0388344fd4cce8518da175a546be7e80b 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 5b013e39a613bb64efcee1481c888f13b2e5cd40..0f06326f2edcfe70d9d5930f9bb984bb935ccc68 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"