summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/asan/TestCases/Darwin/asan-symbolize-partial-report-no-external-symbolizer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Symbolizers] On Darwin compute function offset when possible.Dan Liew2019-11-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* compiler-rt: Rename cc files below test/asan to cppNico Weber2019-08-051-0/+38
See r367803 and similar other changes. llvm-svn: 367887
OpenPOWER on IntegriCloud