From 8d9878a4ca345aef7d7a727a11e7f76de787bac0 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 29 Jan 2013 19:26:22 +0000 Subject: [PATCH] * dwarf2read.c (free_dwo_file): Remove assert. gdb/testsuite * gdb.dwarf2/fission-reread.exp: Add unload test. --- gdb/ChangeLog | 4 ++++ gdb/dwarf2read.c | 1 - gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.dwarf2/fission-reread.exp | 4 ++++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f7faa687832..9b2193bba1b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-01-29 Tom Tromey + + * dwarf2read.c (free_dwo_file): Remove assert. + 2013-01-29 Tom Tromey * value.c (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 + + * gdb.dwarf2/fission-reread.exp: Add unload test. + 2013-01-28 Doug Evans * 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" -- 2.30.2