24#ifndef MY_STACKTRACE_INCLUDED
25#define MY_STACKTRACE_INCLUDED
48#if defined(HAVE_BACKTRACE) || defined(_WIN32) || defined(HAVE_EXT_BACKTRACE)
49#define HAVE_STACKTRACE 1
55void my_set_exception_pointers(EXCEPTION_POINTERS *ep);
56void my_create_minidump(
const char *
name,
HANDLE process, DWORD pid);
102 MY_ATTRIBUTE((format(printf, 3, 4)));
112 MY_ATTRIBUTE((format(printf, 1, 2)));
Header for compiler-dependent features.
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
unsigned char uchar
Definition: my_inttypes.h:52
long long int longlong
Definition: my_inttypes.h:55
size_t my_safe_snprintf(char *to, size_t n, const char *fmt,...)
A (very) limited version of snprintf.
Definition: stacktrace.cc:813
void my_safe_puts_stderr(const char *val, size_t max_len)
Definition: stacktrace.cc:179
size_t my_safe_printf_stderr(const char *fmt,...)
A (very) limited version of snprintf, which writes the result to STDERR.
Definition: stacktrace.cc:822
void my_print_stacktrace(const uchar *stack_bottom, ulong thread_stack)
Definition: stacktrace.cc:299
size_t my_write_stderr(const void *buf, size_t count)
Writes up to count bytes from buffer to STDERR.
Definition: stacktrace.cc:639
void my_safe_print_system_time()
Writes system time to STDERR without allocating new memory.
Definition: stacktrace.cc:833
char * my_safe_utoa(int base, ulonglong val, char *buf)
Converts a ulonglong value to string.
Definition: stacktrace.cc:646
char * my_safe_itoa(int base, longlong val, char *buf)
Async-signal-safe utility functions used by signal handler routines.
Definition: stacktrace.cc:654
void my_init_stacktrace()
Definition: stacktrace.cc:98
void my_write_core(int sig)
Definition: stacktrace.cc:338
static int count
Definition: myisam_ftdump.cc:45
Definition: buf0block_hint.cc:30
case opt name
Definition: sslopt-case.h:29
#define HANDLE
Definition: violite.h:159
int n
Definition: xcom_base.cc:509