public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: kseitz@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  archer-keiths-expr-cumulative: 	* dwarf2read.c (read_structure_type): Set TYPE_NAME, too, for
Date: Thu, 12 Mar 2009 20:51:00 -0000	[thread overview]
Message-ID: <20090312205129.24161.qmail@sourceware.org> (raw)

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.


                 reply	other threads:[~2009-03-12 20:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090312205129.24161.qmail@sourceware.org \
    --to=kseitz@sourceware.org \
    --cc=archer-commits@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).