24#ifndef MY_STACKTRACE_INCLUDED
25#define MY_STACKTRACE_INCLUDED
47#if defined(HAVE_BACKTRACE) || defined(_WIN32)
48#define HAVE_STACKTRACE 1
54void my_set_exception_pointers(EXCEPTION_POINTERS *ep);
55void my_create_minidump(
const char *
name,
HANDLE process, DWORD pid);
101 MY_ATTRIBUTE((format(printf, 3, 4)));
111 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:767
void my_safe_puts_stderr(const char *val, size_t max_len)
Definition: stacktrace.cc:174
size_t my_safe_printf_stderr(const char *fmt,...)
A (very) limited version of snprintf, which writes the result to STDERR.
Definition: stacktrace.cc:776
void my_print_stacktrace(const uchar *stack_bottom, ulong thread_stack)
Definition: stacktrace.cc:253
size_t my_write_stderr(const void *buf, size_t count)
Writes up to count bytes from buffer to STDERR.
Definition: stacktrace.cc:593
void my_safe_print_system_time()
Writes system time to STDERR without allocating new memory.
Definition: stacktrace.cc:787
char * my_safe_utoa(int base, ulonglong val, char *buf)
Converts a ulonglong value to string.
Definition: stacktrace.cc:600
char * my_safe_itoa(int base, longlong val, char *buf)
Async-signal-safe utility functions used by signal handler routines.
Definition: stacktrace.cc:608
void my_init_stacktrace()
Definition: stacktrace.cc:93
void my_write_core(int sig)
Definition: stacktrace.cc:294
static int count
Definition: myisam_ftdump.cc:43
Definition: buf0block_hint.cc:30
case opt name
Definition: sslopt-case.h:33
#define HANDLE
Definition: violite.h:159
int n
Definition: xcom_base.cc:509