r278984 - in /trunk/libbacktrace: ChangeLog dwa...
ian@gcc.gnu.org
ian@gcc.gnu.org
Thu Dec 5 02:20:00 GMT 2019
Author: ian
Date: Thu Dec 5 02:20:11 2019
New Revision: 278984
URL: https://gcc.gnu.org/viewcvs?rev=278984&root=gcc&view=rev
Log:
libbacktrace: simplify DWARF section handling
This is in preparation for adding DWARF 5 support.
* internal.h (enum dwarf_section): Define.
(struct dwarf_sections): Define.
(backtrace_dwarf_add): Update declaration to replace specific
section parameters with dwarf_sections parameter.
* dwarf.c (struct dwarf_data): Replace specific section fields
with dwarf_sections field.
(read_attribute): Use dwarf_sections with altlink.
(build_address_map): Replace specific section parameters with
dwarf_sections parameter. Change all callers.
(read_line_info): Use dwarf_sections with ddata.
(read_referenced_name): Likewise.
(add_function_ranges): Likewise.
(read_function_entry): Likewise.
(read_function_info): Likewise.
(build_dwarf_data): Replace specific section parameters with
dwarf_sections parameter. Change all callers.
(backtrace_dwarf_add): Likewise.
* elf.c (enum debug_section): Remove.
(dwarf_section_names): Remove .zdebug names.
(elf_add): Track zsections separately. Build dwarf_sections.
* pecoff.c (enum debug_section): Remove.
(struct debug_section_info): Remove data field.
(coff_add): Build dwarf_sections.
* xcoff.c (enum dwarf_section): Remove. Replace DWSECT_xxx
references with DEBUG_xxx references.
(xcoff_add): Build dwarf_sections.
Modified:
trunk/libbacktrace/ChangeLog
trunk/libbacktrace/dwarf.c
trunk/libbacktrace/elf.c
trunk/libbacktrace/internal.h
trunk/libbacktrace/pecoff.c
trunk/libbacktrace/xcoff.c
More information about the Gcc-cvs
mailing list