Include/print caught signal in stackdump

This commit is contained in:
Chocobo1
2017-10-25 18:49:30 +08:00
parent acdb7a27dc
commit 21bc08d643
3 changed files with 33 additions and 24 deletions

View File

@@ -14,7 +14,7 @@
/** Print a demangled stack backtrace of the caller function to FILE* out. */
static inline void print_stacktrace(FILE *out = stderr, unsigned int max_frames = 63)
{
fprintf(out, "stack trace:\n");
fprintf(out, "Stack trace:\n");
// storage array for stack trace address data
std::vector<void *> addrlist(max_frames + 1);