On OS X, the interceptors' function names start with "wrap_", e.g. wrap_malloc. This patch modifies the lit tests that expect to find an intercepted function's name on a stack trace to allow having a prefix.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Fix call of RenderFrame in PrintStack in tsan_report.cc instead.
Originally, that code stripped prefixes of functions defined in tsan_interceptors.cc only. That logic seems to get lost at some point. So now we will strip interceptor_/wrap_ from all functions (including user ones). If that becomes a problem, we need to fix the stripping logic.
Comment Actions
Not that this makes any difference now, but I think there should be no user functions starting with two underscores (and thus no functions starting with wrap or intercept)