[wpiutil] StackTrace: Add ability to override default implementation (#3951)

This commit is contained in:
Peter Johnson
2022-01-21 17:22:41 -08:00
committed by GitHub
parent 78d0bcf49d
commit a467392cbd
4 changed files with 34 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
namespace wpi {
std::string GetStackTrace(int offset) {
std::string GetStackTraceDefault(int offset) {
void* stackTrace[128];
int stackSize = backtrace(stackTrace, 128);
char** mangledSymbols = backtrace_symbols(stackTrace, stackSize);