diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2017-02-20 20:53:20 +0100 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2017-02-20 20:59:14 +0100 |
commit | 5f46c5a54825aabb3f30095c84ac30aff7400ac5 (patch) | |
tree | ebfd6f6e31cea782937495179372c9cbf0d7f256 /gdb/dwarf2expr.c | |
parent | 78d4d2c538dd7975f0f130b2df842c4858c01fd3 (diff) | |
download | binutils-5f46c5a54825aabb3f30095c84ac30aff7400ac5.zip binutils-5f46c5a54825aabb3f30095c84ac30aff7400ac5.tar.gz binutils-5f46c5a54825aabb3f30095c84ac30aff7400ac5.tar.bz2 |
Code cleanup: Split dwarf2_ranges_read to a callback
DWARF-5 has .debug_rnglists which is somehow similar to .debug_ranges.
This patch converts dwarf2_ranges_read to dwarf2_ranges_process which can work
with both DWARF kinds of range lists through a callback.
It also simplifies dwarf2_record_block_ranges which can benefit from it.
gdb/ChangeLog
2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
* dwarf2read.c (dwarf2_ranges_process): New function from
dwarf2_ranges_read.
(dwarf2_ranges_read, dwarf2_record_block_ranges): Use
dwarf2_ranges_process.
Diffstat (limited to 'gdb/dwarf2expr.c')
0 files changed, 0 insertions, 0 deletions