1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

another backtrace resolver that prints source file name and line number

This commit is contained in:
Sergei Golubchik
2011-12-11 09:00:12 +01:00
parent c753bedcb1
commit 37c81d81b3
7 changed files with 189 additions and 6 deletions

View File

@@ -55,6 +55,24 @@ void my_set_exception_pointers(EXCEPTION_POINTERS *ep);
#endif
#endif
#ifndef SAFEMALLOC
#undef HAVE_BFD_H
#endif
#ifdef HAVE_BFD_H
#define HAVE_MY_ADDR_RESOLVE 1
#endif
#ifdef HAVE_MY_ADDR_RESOLVE
typedef struct {
const char *file;
const char *func;
uint line;
} my_addr_loc;
int my_addr_resolve(void *ptr, my_addr_loc *loc);
const char *my_addr_resolve_init();
#endif
#ifdef HAVE_WRITE_CORE
void my_write_core(int sig);
#endif