runtime: show stacktrace when panic

This commit is contained in:
Li Jie
2025-01-02 21:45:11 +08:00
parent 5131881bf2
commit 65f855b251
4 changed files with 56 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
#if defined(__linux__)
#define UNW_LOCAL_ONLY
#define _GNU_SOURCE
#include <features.h>
#endif
@@ -35,4 +36,4 @@ void llgo_stacktrace(int skip, void *ctx, int (*fn)(void *ctx, void *pc, void *o
}
}
}
}
}