summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2019-10-28 23:04:27 -0700
committerDan Liew <dan@su-root.co.uk>2019-11-19 10:04:44 -0800
commitb9a92206b6ef8b369dc266d8cb70553ebef293bd (patch)
tree2976f6bdaa9e09f70a34218cf661d965a9fc7b50 /lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py
parente531750c6cf9ab6ca987ffbfe100b1d766269eb5 (diff)
downloadbcm5719-llvm-b9a92206b6ef8b369dc266d8cb70553ebef293bd.tar.gz
bcm5719-llvm-b9a92206b6ef8b369dc266d8cb70553ebef293bd.zip
[Symbolizers] On Darwin compute function offset when possible.
Summary: The sanitizer symbolizers support printing the function offset (difference between pc and function start) of a stackframe using the `%q` format specifier. Unfortunately this didn't actually work because neither the atos or dladdr symbolizer set the `AddressInfo::function_offset` field. This patch teaches both symbolizers to try to compute the function offset. In the case of the atos symbolizer, atos might not report the function offset (e.g. it reports a source location instead) so in this case it fallsback to using `dladdr()` to compute the function offset. Two test cases are included. rdar://problem/56695185 Reviewers: kubamracek, yln Subscribers: #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D69549
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud