diff options
author | Monty <monty@mariadb.org> | 2019-05-17 16:34:35 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2019-05-23 02:28:23 +0300 |
commit | ebfe8c4e0e384a01713af21e148ae68be508c329 (patch) | |
tree | a2fd9499977d0adf6379865ff30346f5cad60fe1 /include/my_stacktrace.h | |
parent | ab38b7511bad8cc03a67f0d43e7169e6dfcac9fa (diff) | |
download | mariadb-git-ebfe8c4e0e384a01713af21e148ae68be508c329.tar.gz |
Make it trivial to get stack traces from external programs.
To get a stacktrace in a program like aria_chk, one only have to do:
#include <my_stacktrace.h>
call my_init_stacktrace(1) in main().
Diffstat (limited to 'include/my_stacktrace.h')
-rw-r--r-- | include/my_stacktrace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/my_stacktrace.h b/include/my_stacktrace.h index da22be202ac..c8f05e9db2f 100644 --- a/include/my_stacktrace.h +++ b/include/my_stacktrace.h @@ -41,7 +41,7 @@ C_MODE_START #if defined(HAVE_STACKTRACE) || defined(HAVE_BACKTRACE) -void my_init_stacktrace(); +void my_init_stacktrace(int setup_handlers); void my_print_stacktrace(uchar* stack_bottom, ulong thread_stack, my_bool silent); int my_safe_print_str(const char* val, size_t max_len); @@ -53,7 +53,7 @@ char *my_demangle(const char *mangled_name, int *status); void my_set_exception_pointers(EXCEPTION_POINTERS *ep); #endif /* __WIN__ */ #else -#define my_init_stacktrace() do { } while(0) +#define my_init_stacktrace(A) do { } while(0) #endif /* ! (defined(HAVE_STACKTRACE) || defined(HAVE_BACKTRACE)) */ #ifndef _WIN32 |