diff options
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 71508fb..55d31d1 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -6030,9 +6030,18 @@ determine_prefix (struct die_info *die) case DW_TAG_class_type: case DW_TAG_structure_type: { - if (parent_prefix != NULL) - return typename_concat (parent_prefix, dwarf2_name (parent)); + { + const char *parent_name = dwarf2_name (parent); + + if (parent_name != NULL) + return typename_concat (parent_prefix, dwarf2_name (parent)); + else + /* FIXME: carlton/2003-05-28: I'm not sure what the + best thing to do here is. */ + return typename_concat (parent_prefix, + "<<anonymous class>>"); + } else return class_name (parent); } |