]> git.ipfire.org Git - thirdparty/gcc.git/commit
[libbacktrace] Add find_unit
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Jan 2019 13:42:09 +0000 (13:42 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Jan 2019 13:42:09 +0000 (13:42 +0000)
commit484fdf8b2e78f76b2cfebc2ff18135498daf0bfc
treeca71db3ecf4f1bac690f2a4126b030a5a06658ef
parentacbbb815f1eaee5f00761b8e86c14709aa8ac096
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268030 138bc75d-0d04-0410-961f-82ee72b054a4
libbacktrace/ChangeLog
libbacktrace/dwarf.c