aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-06-28 20:12:53 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-06-28 20:12:53 +0000
commit9655fd1aecac0e494b53902baaf50cf53f899526 (patch)
tree28573cff710a4be4459d4bc9381069a02f6a3b28 /gdb/dwarf2read.c
parent824cc8dd7cdd81143790e8f78d989d32161d5121 (diff)
downloadgdb-9655fd1aecac0e494b53902baaf50cf53f899526.zip
gdb-9655fd1aecac0e494b53902baaf50cf53f899526.tar.gz
gdb-9655fd1aecac0e494b53902baaf50cf53f899526.tar.bz2
gdb/
Fix modification of cplus_struct_default. * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>: Call ALLOCATE_CPLUS_STRUCT_TYPE. * gdbtypes.c (cplus_struct_default): New empty initializer, comment it. gdb/testsuite/ * gdb.cp/virtbase.cc (class RTTI_base, class RTTI_data) (main) <rtti_data>: New. * gdb.cp/virtbase.exp (print rtti_data): New.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 43e7120..6893e08 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -4954,6 +4954,7 @@ dwarf2_add_member_fn (struct field_info *fip, struct die_info *die,
complaint (&symfile_complaints,
_("Member function \"%s\" (offset %d) is virtual but the vtable offset is not specified"),
fieldname, die->offset);
+ ALLOCATE_CPLUS_STRUCT_TYPE (type);
TYPE_CPLUS_DYNAMIC (type) = 1;
}
}