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:
@@ -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
|
||||
|
Reference in New Issue
Block a user