Possible implementation here: Android: added support for SystemStats::getStackBacktrace(). by jrlanglois · Pull Request #1122 · juce-framework/JUCE · GitHub
I see that your PR includes demangling of the symbols, which would be very nice to also in Linux+macOS too, for PR and forum post on that Mangled symbols in stack traces ![]()
Well well! Looks like we could/should combine the PR/commit powers…
1 Like
Hey folks - I resurrected the PR from the dead because it’d be great to get this one in. It’s fairly straightforward, as are @yairadix 's set of changes too…
1 Like
I also added this, you don’t know how much time it saved me over the last several years:
void YUP_API YUP_CALLTYPE logAssertion (const char* const filename, const int lineNum) noexcept
{
String m ("YUP Assertion failure in ");
m << File::createFileWithoutCheckingPath (CharPointer_UTF8 (filename)).getFileName() << ':' << lineNum;
#if YUP_ASSERT_INCLUDE_STACKTRACE
m << newLine << SystemStats::getStackBacktrace(); // <<<< 🎉
#endif
#if YUP_LOG_ASSERTIONS
Logger::writeToLog (m);
#else
YUP_DBG (m);
#endif
}
3 Likes
