From: manjian2006@gmail.com
To: gdb-patches@sourceware.org
Cc: manjian2006 <manjian2006@gmail.com>
Subject: [PATCH] fixed inherit_abstract_dies infinite recursive call
Date: Mon, 20 Jan 2014 03:41:00 -0000 [thread overview]
Message-ID: <1390189261-32115-1-git-send-email-manjian2006@gmail.com> (raw)
From: manjian2006<manjian2006@gmail.com>
---
gdb/dwarf2read.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 7ca527d..4532251 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -1224,6 +1224,8 @@ struct die_info
/* True if we're presently building the full type name for the
type derived from this DIE. */
unsigned char building_fullname : 1;
+ /* True if this die is in process */
+ unsigned char in_process : 1;
/* Abbrev number */
unsigned int abbrev;
@@ -8013,6 +8015,10 @@ process_imported_unit_die (struct die_info *die, struct dwarf2_cu *cu)
static void
process_die (struct die_info *die, struct dwarf2_cu *cu)
{
+ /* Only process those who are not in process */
+ if(die->in_process)
+ return;
+ die->in_process = 1;
switch (die->tag)
{
case DW_TAG_padding:
@@ -8100,6 +8106,7 @@ process_die (struct die_info *die, struct dwarf2_cu *cu)
new_symbol (die, NULL, cu);
break;
}
+ die->in_process = 0;
}
\f
/* DWARF name computation. */
--
1.8.3.2
next reply other threads:[~2014-01-20 3:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-20 3:41 manjian2006 [this message]
2014-01-20 4:25 manjian2006
2014-01-20 5:53 ` Tom Tromey
2014-01-21 1:43 ` manjian2006
2014-01-21 7:54 ` Joel Brobecker
2014-01-20 6:30 ` manjian2006
2014-01-22 2:45 ` Doug Evans
2014-01-20 6:22 manjian2006
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=1390189261-32115-1-git-send-email-manjian2006@gmail.com \
--to=manjian2006@gmail.com \
--cc=gdb-patches@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