diff options
author | Tom de Vries <tdevries@suse.de> | 2019-01-17 13:42:09 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2019-01-17 13:42:09 +0000 |
commit | 9d576782a29581c04c60d7b9415bb7d3014b0c8c (patch) | |
tree | ca71db3ecf4f1bac690f2a4126b030a5a06658ef /gcc | |
parent | 674931d2b7bd8886d142f31ea3d07a2ab2eb608a (diff) | |
download | gcc-9d576782a29581c04c60d7b9415bb7d3014b0c8c.zip gcc-9d576782a29581c04c60d7b9415bb7d3014b0c8c.tar.gz gcc-9d576782a29581c04c60d7b9415bb7d3014b0c8c.tar.bz2 |
[libbacktrace] Add find_unit
Add a function that finds the unit given an offset into .debug_info.
2019-01-17 Tom de Vries <tdevries@suse.de>
* dwarf.c (struct unit): Add low_offset and high_offset fields.
(struct unit_vector): New type.
(struct dwarf_data): Add units and units_counts fields.
(find_unit): New function.
(find_address_ranges): Add and handle unit_tag parameter.
(build_address_map): Add and handle units_vec parameter.
(build_dwarf_data): Pass units_vec to build_address_map. Store resulting
units vector.
From-SVN: r268030
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions