public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-keiths-expr-cumulative:  * dwarf2read.c (read_structure_type): Set TYPE_NAME, too, for
@ 2009-03-12 20:51 kseitz
  0 siblings, 0 replies; only message in thread
From: kseitz @ 2009-03-12 20:51 UTC (permalink / raw)
  To: archer-commits

The branch, archer-keiths-expr-cumulative has been updated
       via  a150b835c93d5499018334eb9379f89dca7f9c86 (commit)
      from  fc9cc7082d87f0011abd57fce1b2f52861fd67e8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit a150b835c93d5499018334eb9379f89dca7f9c86
Author: keiths <keiths@redhat.com>
Date:   Thu Mar 12 13:48:29 2009 -0700

    	* dwarf2read.c (read_structure_type): Set TYPE_NAME, too, for
    	class types.

-----------------------------------------------------------------------

Summary of changes:
 gdb/dwarf2read.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

First 500 lines of diff:
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 67fe7c5..ccab926 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -4407,13 +4407,17 @@ read_structure_type (struct die_info *die, struct dwarf2_cu *cu)
 	  || cu->language == language_java)
 	{
 	  const char *new_prefix = determine_class_name (die, cu);
+	  if (die->tag == DW_TAG_class_type)
+	    TYPE_NAME (type) = (char *) new_prefix;
 	  TYPE_TAG_NAME (type) = (char *) new_prefix;
 	}
       else
 	{
 	  /* The name is already allocated along with this objfile, so
 	     we don't need to duplicate it for the type.  */
-	  TYPE_TAG_NAME (type) = name;
+	  if (die->tag == DW_TAG_class_type)
+	    TYPE_NAME (type) = (char *) name;
+	  TYPE_TAG_NAME (type) = (char *) name;
 	}
     }
 


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-12 20:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-12 20:51 [SCM] archer-keiths-expr-cumulative: * dwarf2read.c (read_structure_type): Set TYPE_NAME, too, for kseitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).