diff options
author | Sven Gothel <[email protected]> | 2021-09-27 14:20:09 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-09-27 14:20:09 +0200 |
commit | 0cfdff9453f5c98fbf5b28e530f4fae30273f745 (patch) | |
tree | 26381005c547f897c5c267fd5bf0da9db218e53d /src | |
parent | f1bacdd69fdb66d735907baaf11af1f95c6a4059 (diff) |
debug.cpp: Change backtrace depth: ABORT -> all frames, ERR_PRINT* -> 4 framesv0.4.6
Diffstat (limited to 'src')
-rw-r--r-- | src/debug.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/debug.cpp b/src/debug.cpp index e27809b..cac7047 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -121,7 +121,7 @@ void jau::ABORT_impl(const char *func, const char *file, const int line, const c va_end (args); fprintf(stderr, "; last errno %d %s\n", errno, strerror(errno)); fflush(stderr); - jau::print_backtrace(true /* skip_anon_frames */, 3 /* max_frames */, 3 /* skip_frames: this() + print_b*() + get_b*() */); + jau::print_backtrace(true /* skip_anon_frames */, -1 /* max_frames -> all */, 3 /* skip_frames: this() + print_b*() + get_b*() */); abort(); } @@ -130,7 +130,7 @@ void jau::ERR_PRINTv(const char *func, const char *file, const int line, const c vfprintf(stderr, format, args); fprintf(stderr, "; last errno %d %s\n", errno, strerror(errno)); fflush(stderr); - jau::print_backtrace(true /* skip_anon_frames */, 3 /* max_frames */, 3 /* skip_frames: this() + print_b*() + get_b*() */); + jau::print_backtrace(true /* skip_anon_frames */, 4 /* max_frames */, 3 /* skip_frames: this() + print_b*() + get_b*() */); } void jau::ERR_PRINT_impl(const char *prefix, const bool backtrace, const char *func, const char *file, const int line, const char * format, ...) noexcept { @@ -142,7 +142,7 @@ void jau::ERR_PRINT_impl(const char *prefix, const bool backtrace, const char *f fprintf(stderr, "; last errno %d %s\n", errno, strerror(errno)); fflush(stderr); if( backtrace ) { - jau::print_backtrace(true /* skip_anon_frames */, 3 /* max_frames */, 3 /* skip_frames: this() + print_b*() + get_b*() */); + jau::print_backtrace(true /* skip_anon_frames */, 4 /* max_frames */, 3 /* skip_frames: this() + print_b*() + get_b*() */); } } |