mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-02-09 22:22:58 +00:00
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> |
||
|---|---|---|
| .. | ||
| bytereader_unittest.cc | ||
| bytereader-inl.h | ||
| bytereader.cc | ||
| bytereader.h | ||
| cfi_assembler.cc | ||
| cfi_assembler.h | ||
| dwarf2diehandler_unittest.cc | ||
| dwarf2diehandler.cc | ||
| dwarf2diehandler.h | ||
| dwarf2enums.h | ||
| dwarf2reader_cfi_unittest.cc | ||
| dwarf2reader_die_unittest.cc | ||
| dwarf2reader_lineinfo_unittest.cc | ||
| dwarf2reader_test_common.h | ||
| dwarf2reader.cc | ||
| dwarf2reader.h | ||
| elf_reader.cc | ||
| elf_reader.h | ||
| functioninfo.cc | ||
| functioninfo.h | ||
| line_state_machine.h | ||
| types.h | ||