From b31ca3decea5d9b9caada242783c77974082ff52 Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Tue, 27 Jul 1993 08:59:44 +0000 Subject: [PATCH] * mipsread.c (parse_type): Do not set tag name for compiler generated fake tag names. --- gdb/ChangeLog | 5 +++++ gdb/mipsread.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 22c228c0a56..e7bbf57fdf8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Tue Jul 27 01:57:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + * mipsread.c (parse_type): Do not set tag name for compiler + generated fake tag names. + Mon Jul 26 17:31:49 1993 K. Richard Pixley (rich@rtl.cygnus.com) * config/m88k/m88k.mt (TDEPFILES): add exec.o. diff --git a/gdb/mipsread.c b/gdb/mipsread.c index d9bd8a50f0f..2f68c27e0b2 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); } -- 2.30.2