diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1993-07-27 08:59:44 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1993-07-27 08:59:44 +0000 |
commit | b31ca3decea5d9b9caada242783c77974082ff52 (patch) | |
tree | 5a96c9dc21e280400e7b943b433df15284059f24 /gdb/mipsread.c | |
parent | de9310b92b832e72fbc23ef5f7601edff4739dd2 (diff) | |
download | gdb-b31ca3decea5d9b9caada242783c77974082ff52.zip gdb-b31ca3decea5d9b9caada242783c77974082ff52.tar.gz gdb-b31ca3decea5d9b9caada242783c77974082ff52.tar.bz2 |
* mipsread.c (parse_type): Do not set tag name for compiler
generated fake tag names.
Diffstat (limited to 'gdb/mipsread.c')
-rw-r--r-- | gdb/mipsread.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/mipsread.c b/gdb/mipsread.c index d9bd8a5..2f68c27 100644 --- a/gdb/mipsread.c +++ b/gdb/mipsread.c @@ -1359,7 +1359,11 @@ parse_type (ax, bs, bigend) complain (&bad_tag_guess_complaint, name); TYPE_CODE (tp) = type_code; } - if (TYPE_TAG_NAME (tp) == NULL || !STREQ (TYPE_TAG_NAME (tp), name)) + /* Do not set the tag name if it is a compiler generated tag name + (.Fxx or .xxfake) for unnamed struct/union/enums. */ + if (name[0] == '.') + TYPE_TAG_NAME (tp) = NULL; + else if (TYPE_TAG_NAME (tp) == NULL || !STREQ (TYPE_TAG_NAME (tp), name)) TYPE_TAG_NAME (tp) = obsavestring (name, strlen (name), ¤t_objfile->type_obstack); } |