breakpad/src/common/dwarf
Sterling Augustine 2b936b06c1 Refactor rangelist handling to prepare for dwarf5 .debug_rngslist
Dwarf5 introduces a new .debug_rngslist section, to take the place
of the Dwarf4 .debug_ranges. However, the dwarf version is CU-based,
and not file-based, so there can be both sections, and which section
the CU needs isn't known until the dwarf parser encounters either
DW_AT_ranges (dwarf 4 and lower) or DW_AT_rnglists_base (dwarf 5).

This change refactors the code around range lists and range list
readers to defer the decision of what section to parse until
the relevant attribute is found. It moves the range list section
reader from the range-list handler itself (which doesn't know which
section it will use) to the CU context, and then lets the handler
know when it encounters DW_AT_ranges.

I will add a reader for the new dwarf5 section, along with the code to
interpret the new section, and its forms and such in a subsequent patch.

Change-Id: Ie92e4c9daa3f0acb98d7ef74f6b9c2065db849b1
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2433684
Reviewed-by: Mark Mentovai <mark@chromium.org>
2020-09-28 17:56:12 +00:00
..
bytereader_unittest.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
bytereader-inl.h fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
bytereader.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
bytereader.h fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
cfi_assembler.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
cfi_assembler.h fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
dwarf2diehandler_unittest.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
dwarf2diehandler.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
dwarf2diehandler.h fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
dwarf2enums.h Add support for dwarf5 line tables. 2020-07-14 00:46:58 +00:00
dwarf2reader_cfi_unittest.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
dwarf2reader_die_unittest.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
dwarf2reader_lineinfo_unittest.cc Add support for dwarf5 line tables. 2020-07-14 00:46:58 +00:00
dwarf2reader_test_common.h fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
dwarf2reader.cc Refactor rangelist handling to prepare for dwarf5 .debug_rngslist 2020-09-28 17:56:12 +00:00
dwarf2reader.h Refactor rangelist handling to prepare for dwarf5 .debug_rngslist 2020-09-28 17:56:12 +00:00
elf_reader.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
elf_reader.h fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
functioninfo.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
functioninfo.h Use stdint.h numeric types 2020-04-09 00:09:40 +00:00
line_state_machine.h Use stdint.h numeric types 2020-04-09 00:09:40 +00:00
types.h Use stdint.h numeric types 2020-04-09 00:09:40 +00:00