diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2015-09-14 23:56:42 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2015-09-14 23:56:42 +0000 |
commit | 1b76da6a6c5a1e8ec79d77cfd61a48a516491d7d (patch) | |
tree | 1faeacdcd64674ab45e653030b0056af9088a754 /clang/lib/Sema/SemaExpr.cpp | |
parent | 6c6eab162a2619fdb9db4463d286cf2e88734a41 (diff) | |
download | bcm5719-llvm-1b76da6a6c5a1e8ec79d77cfd61a48a516491d7d.tar.gz bcm5719-llvm-1b76da6a6c5a1e8ec79d77cfd61a48a516491d7d.zip |
Support inline functions symbolization in Addr2Line symbolizer.
Patch by Maxim Ostapenko!
Summary:
Right now, Addr2Line symbolizer in asan_symbolize.py doesn't support inline functions symbolization. This might be a useful feature for using ASan on embedded systems.
Test results:
$ cat test.c
static inline void FooBarBaz() {
__sanitizer_print_stack_trace();
}
int main() {
FooBarBaz();
return 0;
}
$ clang test.c -fsanitize=address -g -O2 -o test.x && ./test.x &> /tmp/test.log
$ ./projects/compiler-rt/lib/asan/scripts/asan_symbolize.py -l /tmp/test.log
#0 0x42095e in __sanitizer_print_stack_trace _asan_rtl_
#1 0x4cec07 in FooBarBaz /home/max/build/llvm/asan/test.c:4
#2 0x4cec07 in main /home/max/build/llvm/asan/test.c:8
#3 0x7f89f0891ec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
Reviewers: glider, samsonov
Subscribers: jevinskie, llvm-commits, ygribov
Differential Revision: http://reviews.llvm.org/D12153
llvm-svn: 247642
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
0 files changed, 0 insertions, 0 deletions