From patchwork Wed Oct 7 12:49:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Edelsohn X-Patchwork-Id: 8968 Received: (qmail 42536 invoked by alias); 7 Oct 2015 12:49:26 -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 42521 invoked by uid 89); 7 Oct 2015 12:49:25 -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-io0-f178.google.com Received: from mail-io0-f178.google.com (HELO mail-io0-f178.google.com) (209.85.223.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 07 Oct 2015 12:49:24 +0000 Received: by iofh134 with SMTP id h134so20774291iof.0 for ; Wed, 07 Oct 2015 05:49:22 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.107.132.144 with SMTP id o16mr1488354ioi.31.1444222162023; Wed, 07 Oct 2015 05:49:22 -0700 (PDT) Received: by 10.36.133.5 with HTTP; Wed, 7 Oct 2015 05:49:21 -0700 (PDT) In-Reply-To: References: <20151002213227.GA3602@adacore.com> <20151006165157.GA3341@adacore.com> Date: Wed, 7 Oct 2015 08:49:21 -0400 Message-ID: Subject: Re: AIX DWARF debugging sections From: David Edelsohn To: Doug Evans Cc: Joel Brobecker , Tristan Gingold , GDB Patches On Tue, Oct 6, 2015 at 3:59 PM, Doug Evans wrote: > On Tue, Oct 6, 2015 at 11:24 AM, David Edelsohn wrote: >> On Tue, Oct 6, 2015 at 12:51 PM, Joel Brobecker wrote: >>>> > Because the AIX section does not use the standard name, I am unsure >>>> > which it represents. The documentation only states "dwmac", which >>>> > could expand to either name. >>>> > >>>> > Thanks, David >>>> >>>> Yeah, I think we need to figure out which one it is. >>> >>> That's what I have been trying to do, but I don't see any evidence >>> that GCC emits it, or that binutils handles it. So the answer must >>> lie somewhere on the system side. David? >> >> The official answer from IBM XLC is the section is for both >> .debug_macinfo and .debug_macro >> >> For DWARF4 and below, the dwmac section corresponds to .debug_macinfo. >> For DWARF5 and above, the dwmac section corresponds to .debug_macro. >> >> XLC currently does not generate any macro debugging information for DWARF4. > > Huh. > Let's make sure this is documented in the code. Is the following sufficient or you would like more exposition? { NULL, NULL }, /* eh_frame */ Thanks, David diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 0d49751..86d4ca4 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -159,11 +159,11 @@ static const struct dwarf2_debug_sections dwarf2_xcoff_names = { { ".dwabrev", NULL }, { ".dwline", NULL }, { ".dwloc", NULL }, - { NULL, NULL }, /* debug_macinfo */ - { NULL, NULL }, /* debug_macro */ + { ".dwmac", NULL }, /* 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 */ { ".dwframe", NULL },