This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 3/4] Add readelf/objdump support for version 2 DWARF package files


This patch adds readelf/objdump support for version 2 of the proposed DWARF
package file format, documented here:

   http://gcc.gnu.org/wiki/DebugFissionDWP

Tested on x86_64 with GCC 4.7 -gsplit-dwarf and a new version of dwp (see
patch 4/4). OK to commit?

-cary

binutils/
        * dwarf.c (cu_tu_indexes_read, shndx_pool, shndx_pool_size)
        (shndx_pool_used): Move to top of file.
        (struct cu_tu_set): New type.
        (cu_count, tu_count, cu_sets, tu_sets): New file scope variables.
        (fetch_indexed_string): Add "this_set" parameter.  Update all callers.
        (find_cu_tu_set_v2): New function.
        (read_and_display_attr_value): Add "this_set" parameter.
        (read_and_display_attr): Likewise.
        (process_debug_info): Track base offsets for DWARF package files.
        (load_debug_info): Call load_cu_tu_indexes.
        (get_DW_SECT_short_name): New function.
        (process_cu_tu_index): Add support for version 2 DWARF package files.

Attachment: readelf-dwp-v2-patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]