From: Tristan Gingold <gingold@adacore.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: FYI: implement new DWARF macro proposal
Date: Wed, 27 Jul 2011 10:12:00 -0000 [thread overview]
Message-ID: <63F9CC20-59B3-4D4A-AE35-069BBCD94909@adacore.com> (raw)
In-Reply-To: <m3y5zlotxm.fsf@fleche.redhat.com>
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 <tromey@redhat.com>
>
> * symfile.h (struct dwarf2_debug_sections) <macro>: 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) <macro>: 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.
next prev parent reply other threads:[~2011-07-27 8:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-26 18:31 Tom Tromey
2011-07-27 10:12 ` Tristan Gingold [this message]
2011-07-27 15:30 ` Tom Tromey
2011-07-27 15:31 ` Tristan Gingold
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=63F9CC20-59B3-4D4A-AE35-069BBCD94909@adacore.com \
--to=gingold@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@redhat.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