aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2008-09-01 22:24:05 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2008-09-01 22:24:05 +0000
commitd68209e4d0b6d80ffc73615e738bbe9c66b5746b (patch)
treed8f5558f7728d1f11409049de787c818bcf82acd /gdb/dwarf2read.c
parent70296270a449e53a8d28fcc77933479509bbb913 (diff)
downloadgdb-d68209e4d0b6d80ffc73615e738bbe9c66b5746b.zip
gdb-d68209e4d0b6d80ffc73615e738bbe9c66b5746b.tar.gz
gdb-d68209e4d0b6d80ffc73615e738bbe9c66b5746b.tar.bz2
Stay compatible after the GCC PR fortran/29635 fix.
* dwarf2read.c (process_die <DW_TAG_imported_module>) (process_die <DW_TAG_imported_module>): Do not assert anything about these unsupported tags.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 95a85b1..1b68e2a 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2760,10 +2760,10 @@ process_die (struct die_info *die, struct dwarf2_cu *cu)
information contained in these. DW_TAG_imported_declaration
dies shouldn't have children; DW_TAG_imported_module dies
shouldn't in the C++ case, but conceivably could in the
- Fortran case, so we'll have to replace this gdb_assert if
- Fortran compilers start generating that info. */
+ Fortran case. */
processing_has_namespace_info = 1;
- gdb_assert (die->child == NULL);
+ complaint (&symfile_complaints, _("unsupported tag: '%s'"),
+ dwarf_tag_name (die->tag));
break;
default:
new_symbol (die, NULL, cu);