]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
addr2line: add label checks when DW_AT_range and DW_AT_low_pc cannot be used
authoremaste <emaste@FreeBSD.org>
Fri, 27 Nov 2020 21:38:03 +0000 (21:38 +0000)
committeremaste <emaste@FreeBSD.org>
Fri, 27 Nov 2020 21:38:03 +0000 (21:38 +0000)
commitd94e1f5124e3bb2a06a404259ef081fdbbb61d3c
treeaba3f7b890fe814f6f542222dce9ad8adf583f6e
parent9ed5caf4428e7057bd0d41e68ded1ab1f78b4f14
addr2line: add label checks when DW_AT_range and DW_AT_low_pc cannot be used

Check label's ranges for address we want to translate if a CU doesn't
have usable DW_AT_range or DW_AT_low_pc.

Use more appropriate names: "struct CU" -> "struct range"

Developed as part of upstream ELF Tool Chain bug report
https://sourceforge.net/p/elftoolchain/tickets/552/ although this does
not address the specific case reported there.

Submitted by: Tiger Gao <tig@freebsdfoundation.org>
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D23782
contrib/elftoolchain/addr2line/addr2line.c