From patchwork Mon Oct 12 17:41:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Edelsohn X-Patchwork-Id: 9060 Received: (qmail 68861 invoked by alias); 12 Oct 2015 17:41:59 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 68850 invoked by uid 89); 12 Oct 2015 17:41:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f174.google.com Received: from mail-ig0-f174.google.com (HELO mail-ig0-f174.google.com) (209.85.213.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 12 Oct 2015 17:41:56 +0000 Received: by igcpe7 with SMTP id pe7so85724471igc.0 for ; Mon, 12 Oct 2015 10:41:54 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.143.4 with SMTP id sa4mr13177936igb.52.1444671714555; Mon, 12 Oct 2015 10:41:54 -0700 (PDT) Received: by 10.36.133.5 with HTTP; Mon, 12 Oct 2015 10:41:54 -0700 (PDT) In-Reply-To: <20151012155021.GC3341@adacore.com> References: <20151002213227.GA3602@adacore.com> <20151006165157.GA3341@adacore.com> <20151010000433.GB3341@adacore.com> <20151012155021.GC3341@adacore.com> Date: Mon, 12 Oct 2015 13:41:54 -0400 Message-ID: Subject: Re: AIX DWARF debugging sections From: David Edelsohn To: Joel Brobecker Cc: Doug Evans , Tristan Gingold , GDB Patches On Mon, Oct 12, 2015 at 11:50 AM, Joel Brobecker wrote: >> AIX XLC apparently will not utilize .dwmac macro section until DWARF5 >> to encore the .debug_macro section, so GCC and GDB should utilize it >> as .debug_macro and not produce or consume .debug_macinfo. > > OK, if macinfo data cannot be generated by XLC, then it would make > sense to me to just ammend your patch to only update the .debug_macro > entry. If that's correct, then that avoids the concern I had about > having two entries with the same section name. Appended is a revised patch that associates .dwmac with debug_macro. I will revise GCC accordingly. Thanks, David * xcoffread (dwrf2_xcoff_names): Add .dwmac and .dwpbtyp. { ".dwframe", NULL }, { NULL, NULL }, /* eh_frame */ diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 0d49751..5f27859 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -159,11 +159,11 @@ static const struct dwarf2_debug_sections dwarf2_xcoff_nam es = { { ".dwabrev", NULL }, { ".dwline", NULL }, { ".dwloc", NULL }, - { NULL, NULL }, /* debug_macinfo */ - { NULL, NULL }, /* debug_macro */ + { NULL, NULL }, /* XLC does not generate debug_macinfo for DWARF4 and below * / + { ".dwmac", NULL }, /* debug_macro for DWARF5 and above */ { ".dwstr", NULL }, { ".dwrnges", NULL }, - { NULL, NULL }, /* debug_types */ + { ".dwpbtyp", NULL }, { NULL, NULL }, /* debug_addr */