public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Doug Evans <xdje42@gmail.com>
Cc: gdb-patches@sourceware.org
Subject: Re: PING: [PATCH v4] fixed inherit_abstract_dies infinite recursive call
Date: Thu, 20 Feb 2014 17:48:00 -0000	[thread overview]
Message-ID: <20140220174821.GF4113@adacore.com> (raw)
In-Reply-To: <CAP9bCMQzx4z005Jn7KShg-yGDJ_grL5AV3XurBJNJEcTCeEJyA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1042 bytes --]

> >> 2014-02-18  lin zuojian  <manjian2006@gmail.com>
> >>           Joel Brobecker  <brobecker@adacore.com>
> >>           Doug Evans  <xdje42@gmail.com>
> >>
> >>       PR symtab/16581
> >>       * dwarf2read.c (struct die_info): New member in_process.
> >>       (reset_die_in_process): New function.
> >>       (process_die): Set it at the start, reset when returning.
> >>       (inherit_abstract_dies): Only call process_die if origin_child_die
> >>       not already being processed.
> >>
> >>       testsuite/
> >>       * gdb.dwarf2/dw2-icycle.S: New file.
> >>       * gdb.dwarf2/dw2-icycle.c: New file.
> >>       * gdb.dwarf2/dw2-icycle.exp: New file.
[...]
> Committed.
> [with a small tweak to the testcase (added a comment)]

I noticed something as well (in my testcase), which I think will make
it fail with an ARM bare-metal compiler. Fix attached and pushed.

gdb/testsuite/ChangeLog:

        * gdb.dwarf2/dw2-icycle.S: Remove second and third parameters
        in .section pseudo-op.

Tested on x86_64-linux...

-- 
Joel

[-- Attachment #2: 0001-Simplify-.section-in-dw2-icycle.S.patch --]
[-- Type: text/x-diff, Size: 1724 bytes --]

From 83deb43f87f098f7858db8643786301eb73875f7 Mon Sep 17 00:00:00 2001
From: Joel Brobecker <brobecker@adacore.com>
Date: Thu, 20 Feb 2014 18:34:45 +0100
Subject: [PATCH] Simplify .section in dw2-icycle.S

The arm-elf assembler chokes on the extra parameters in the .section
pseudo-op, so this patch removes them.

gdb/testsuite/ChangeLog:

        * gdb.dwarf2/dw2-icycle.S: Remove second and third parameters
        in .section pseudo-op.
---
 gdb/testsuite/ChangeLog               | 5 +++++
 gdb/testsuite/gdb.dwarf2/dw2-icycle.S | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 52dff12..d1d99f8 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-02-20  Joel Brobecker  <brobecker@adacore.com>
+
+	* gdb.dwarf2/dw2-icycle.S: Remove second and third parameters
+	in .section pseudo-op.
+
 2014-02-20  lin zuojian  <manjian2006@gmail.com>
 	    Joel Brobecker  <brobecker@adacore.com>
 	    Doug Evans  <xdje42@gmail.com>
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-icycle.S b/gdb/testsuite/gdb.dwarf2/dw2-icycle.S
index 6bc533a..1f84e4a 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-icycle.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-icycle.S
@@ -33,7 +33,7 @@ p__top:
 .LFE2:
 .Letext0:
 
-	.section	.debug_info,"",@progbits
+	.section	.debug_info
 .Ldebug_info0:
 	.4byte	.Ledebug_info0 - .Lsdebug_info0  /* Length of CU Info */
 .Lsdebug_info0:
@@ -118,7 +118,7 @@ p__top:
 	.byte	0	/* end of children of DIE 0xb */
 .Ledebug_info0:
 
-	.section	.debug_abbrev,"",@progbits
+	.section	.debug_abbrev
 .Ldebug_abbrev0:
 	.uleb128 0x1	/* (abbrev code) */
 	.uleb128 0x11	/* (TAG: DW_TAG_compile_unit) */
-- 
1.8.3.2


  reply	other threads:[~2014-02-20 17:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-22  7:07 manjian2006
2014-01-28 12:06 ` Joel Brobecker
2014-02-10 14:28   ` PING: " Joel Brobecker
2014-02-10 17:37     ` Doug Evans
2014-02-11  2:19       ` Joel Brobecker
2014-02-12  6:58         ` Doug Evans
2014-02-13  7:31           ` Joel Brobecker
2014-02-13  8:01             ` lin zuojian
2014-02-14  3:34               ` Joel Brobecker
2014-02-19  6:48                 ` Doug Evans
2014-02-19  7:00                   ` lin zuojian
2014-02-19  7:59                   ` Joel Brobecker
2014-02-20 17:18                     ` Doug Evans
2014-02-20 17:48                       ` Joel Brobecker [this message]
2014-02-12  1:29     ` 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=20140220174821.GF4113@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=xdje42@gmail.com \
    /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).