]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
addr2line: add label checks when DW_AT_range and DW_AT_low_pc cannot be used
authorEd Maste <emaste@FreeBSD.org>
Fri, 27 Nov 2020 21:38:03 +0000 (21:38 +0000)
committerEd Maste <emaste@FreeBSD.org>
Fri, 27 Nov 2020 21:38:03 +0000 (21:38 +0000)
commita36179937e7e768d1840896ac1ea13ba6f118a09
treeaba3f7b890fe814f6f542222dce9ad8adf583f6e
parentf120ad6ba0c978f404159d85c918b69fd5cf489d
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