MCPcopy Create free account
hub / github.com/Snapchat/Valdi / captureBacktrace

Function captureBacktrace

third-party/yoga/src/android/lyra/lyra.cpp:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void captureBacktrace(size_t skip, vector<InstructionPointer>& stackTrace) {
68 // Beware of a bug on some platforms, which makes the trace loop until the
69 // buffer is full when it reaches a noexcept function. It seems to be fixed in
70 // newer versions of gcc. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56846
71 // TODO(t10738439): Investigate workaround for the stack trace bug
72 BacktraceState state = {skip, stackTrace};
73 _Unwind_Backtrace(unwindCallback, &state);
74}
75
76// this is a pointer to a function
77std::atomic<LibraryIdentifierFunctionType> gLibraryIdentifierFunction{nullptr};

Callers 1

getStackTraceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected