From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24200 invoked by alias); 12 Mar 2009 20:51:29 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 24176 invoked by uid 9079); 12 Mar 2009 20:51:29 -0000 Date: Thu, 12 Mar 2009 20:51:00 -0000 Message-ID: <20090312205129.24161.qmail@sourceware.org> 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 X-Git-Refname: refs/heads/archer-keiths-expr-cumulative X-Git-Reftype: branch X-Git-Oldrev: fc9cc7082d87f0011abd57fce1b2f52861fd67e8 X-Git-Newrev: a150b835c93d5499018334eb9379f89dca7f9c86 X-SW-Source: 2009-q1/txt/msg00314.txt.bz2 List-Id: 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 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.