diff options
author | Tom Tromey <tromey@redhat.com> | 2013-01-29 19:26:16 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-01-29 19:26:16 +0000 |
commit | 2066ff985f037f0a5a9445be4e82bc352e0978ec (patch) | |
tree | 0e5fbaac23fef6e5b68ceffd71eb42fc75862b93 | |
parent | 326749d1847fb13cf38aa775c9bca524432013da (diff) | |
download | gdb-2066ff985f037f0a5a9445be4e82bc352e0978ec.tar.gz |
* dwarf2read.c (free_dwo_file): Remove assert.
gdb/testsuite
* gdb.dwarf2/fission-reread.exp: Add unload test.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 1 | ||||
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/fission-reread.exp | 4 |
4 files changed, 12 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f7faa687832..9b2193bba1b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 63c43eb990d..23e2dffdda8 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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); diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 745c9ba0f12..ba5fa5d0388 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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. diff --git a/gdb/testsuite/gdb.dwarf2/fission-reread.exp b/gdb/testsuite/gdb.dwarf2/fission-reread.exp index 5b013e39a61..0f06326f2ed 100644 --- a/gdb/testsuite/gdb.dwarf2/fission-reread.exp +++ b/gdb/testsuite/gdb.dwarf2/fission-reread.exp @@ -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" |