_Unwind_Backtrace is not available on iOS, so we should ifdef out the posix implementations of BufferedStackTrace::SlowUnwindStack and BufferedStackTrace::SlowUnwindStackWithContext on iOS.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
All this looks weird to me.
- Slow unwind is not available on Mac at all (see SANITIZER_CAN_SLOW_UNWIND macro).
- You #ifdef out BufferedStackTrace methods which are referenced from other files (sanitizer_stacktrace_libcdep.cc)
- You don't #ifdef out another _Unwind-related helper methods like Unwind_Trace, Unwind_GetIP, which are only used in functions you #ifdef out.
Looks like this whole *file* makes no sense on Mac, as we're not using slow unwinder there. I'd suggest we just rename it to smth. like sanitizer_unwind_linux_libcdep.cc, and use it on Linux/Android/FreeBSD only.
Comment Actions
Updating based on feedback from samsonov.
Renaming file from posix->linux and changing the #ifdef guard.