libbacktrace: remove duplicate low_pc/high_pc/range handling
authorIan Lance Taylor <iant@golang.org>
Tue, 10 Dec 2019 03:41:49 +0000 (03:41 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Dec 2019 03:41:49 +0000 (03:41 +0000)
commit4b3fc18803648080cf1733cfc3f2a8e3e80a5693
tree886184cf9dcd8d55a123d2aa1a5cc0c7b1d48a79
parentd68f5d458d7df12b31d27094e8f7ed0208ccf693
libbacktrace: remove duplicate low_pc/high_pc/range handling

* dwarf.c (struct pcrange): Define.
(update_pcrange, add_ranges): New static functions.
(add_unit_addr): Change signature to work with add_ranges.  Don't
add base_address here.
(add_unit_ranges): Remove.
(find_address_ranges): Replace str/ranges parameters with
dwarf_sections.  Use update_pcrange and add_ranges.  Change all
callers.
(add_function_range): Change signature to work with add_ranges.
Don't add base_address here.
(add_function_ranges): Remove.
(read_function_entry): Use update_pcrange and add_ranges.

From-SVN: r279154
libbacktrace/ChangeLog
libbacktrace/dwarf.c