diff options
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r-- | gdb/dwarfread.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index fcc2f35..4fb1ddb 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -926,7 +926,9 @@ DEFUN(struct_type, (dip, thisdie, enddie), } /* Some compilers try to be helpful by inventing "fake" names for anonymous enums, structures, and unions, like "~0fake". Thanks, but no thanks. */ - if (dip -> at_name == NULL || *dip -> at_name == '~') + if (dip -> at_name == NULL + || *dip -> at_name == '~' + || *dip -> at_name == '.') { tpart2 = "{...}"; } @@ -1345,7 +1347,9 @@ DEFUN(enum_type, (dip), struct dieinfo *dip) tpart1 = "enum "; /* Some compilers try to be helpful by inventing "fake" names for anonymous enums, structures, and unions, like "~0fake". Thanks, but no thanks. */ - if (dip -> at_name == NULL || *dip -> at_name == '~') + if (dip -> at_name == NULL + || *dip -> at_name == '~' + || *dip -> at_name == '.') { tpart2 = "{...}"; } else { |