sanitizer_stacktrace.cc (GetCanonicFrame): Assume we compiled code with GCC when extracting the caller PC for ARM if...
libsanitizer/ * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we compiled code with GCC when extracting the caller PC for ARM if no valid frame pointer is available. From-SVN: r241980
This commit is contained in:
parent
103c4f759a
commit
789306de0f
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
|
||||
|
||||
* sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
|
||||
compiled code with GCC when extracting the caller PC for ARM if no
|
||||
valid frame pointer is available.
|
||||
|
||||
2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
|
||||
|
||||
PR sanitizer/63958
|
||||
|
|
|
@ -55,8 +55,8 @@ static inline uhwptr *GetCanonicFrame(uptr bp,
|
|||
// Nope, this does not look right either. This means the frame after next does
|
||||
// not have a valid frame pointer, but we can still extract the caller PC.
|
||||
// Unfortunately, there is no way to decide between GCC and LLVM frame
|
||||
// layouts. Assume LLVM.
|
||||
return bp_prev;
|
||||
// layouts. Assume GCC.
|
||||
return bp_prev - 1;
|
||||
#else
|
||||
return (uhwptr*)bp;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue