From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2975 invoked by alias); 27 Jul 2011 08:08:59 -0000 Received: (qmail 2957 invoked by uid 22791); 27 Jul 2011 08:08:57 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Jul 2011 08:08:44 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id EDE66CB0359; Wed, 27 Jul 2011 10:08:42 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Mr07Hfb5v7dL; Wed, 27 Jul 2011 10:08:32 +0200 (CEST) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id BD525CB0257; Wed, 27 Jul 2011 10:08:32 +0200 (CEST) Subject: Re: FYI: implement new DWARF macro proposal Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: Date: Wed, 27 Jul 2011 10:12:00 -0000 Cc: gdb-patches@sourceware.org Content-Transfer-Encoding: 7bit Message-Id: <63F9CC20-59B3-4D4A-AE35-069BBCD94909@adacore.com> References: To: Tom Tromey X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00755.txt.bz2 On Jul 26, 2011, at 7:03 PM, Tom Tromey wrote: > I'm checking this in. > > Jakub recently wrote a spec and implementation for a new representation > of the data currently in .debug_macinfo. This new representation takes > much less space the old one. Jakub's code is now in GCC trunk. > > This patch implements the new format for gdb. > > Built and regtested by the buildbot. I also tested macscp.exp and > lineinc.exp using the new compiler. > > Tom > > 2011-07-26 Tom Tromey > > * symfile.h (struct dwarf2_debug_sections) : New field. > * dwarf2read.c (read_indirect_string_at_offset): New function. > (read_indirect_string): Use it. > (dwarf_decode_macro_bytes): New function, taken from > dwarf_decode_macros. Handle DW_MACRO_GNU_*. > (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*. > (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode): > New functions. > (struct dwarf2_per_objfile) : New field. > (dwarf2_elf_names): Add .debug_macro. > (dwarf2_macros_too_long_complaint): Add 'section' argument. > (dwarf2_locate_sections): Handle new section. > (read_file_scope): Handle DW_AT_GNU_macros. > (dwarf2_per_objfile_free): Unmap the .debug_macro section. [...] > diff --git a/gdb/symfile.h b/gdb/symfile.h > index cc65a14..eb5beaa 100644 > --- a/gdb/symfile.h > +++ b/gdb/symfile.h > @@ -582,6 +582,7 @@ struct dwarf2_debug_sections { > struct dwarf2_section_names line; > struct dwarf2_section_names loc; > struct dwarf2_section_names macinfo; > + struct dwarf2_section_names macro; > struct dwarf2_section_names str; > struct dwarf2_section_names ranges; > struct dwarf2_section_names types; Looks like you forgot to update the table for AIX. Tristan.