mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
Ignore names invented by helpful compilers for anonymous structs, unions,
and enums.
This commit is contained in:
@ -909,7 +909,9 @@ DEFUN(struct_type, (dip, thisdie, enddie),
|
||||
TYPE_CODE (type) = TYPE_CODE_UNDEF;
|
||||
break;
|
||||
}
|
||||
if (dip -> at_name == NULL)
|
||||
/* 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 == '~')
|
||||
{
|
||||
tpart2 = "{...}";
|
||||
}
|
||||
@ -1325,7 +1327,9 @@ DEFUN(enum_type, (dip), struct dieinfo *dip)
|
||||
}
|
||||
TYPE_CODE (type) = TYPE_CODE_ENUM;
|
||||
tpart1 = "enum ";
|
||||
if (dip -> at_name == NULL)
|
||||
/* 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 == '~')
|
||||
{
|
||||
tpart2 = "{...}";
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user