diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-12-11 09:00:12 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-12-11 09:00:12 +0100 |
commit | 37c81d81b3940a21b500aff6aeb70e8b1df0b7e8 (patch) | |
tree | a509017b136b719551fdda6d69470ad5f0b15950 /include/my_stacktrace.h | |
parent | c753bedcb1975b0875e2e9e3c176db37b6becbff (diff) | |
download | mariadb-git-37c81d81b3940a21b500aff6aeb70e8b1df0b7e8.tar.gz |
another backtrace resolver that prints source file name and line number
Diffstat (limited to 'include/my_stacktrace.h')
-rw-r--r-- | include/my_stacktrace.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/my_stacktrace.h b/include/my_stacktrace.h index df5741fa3d8..f5229a4b0af 100644 --- a/include/my_stacktrace.h +++ b/include/my_stacktrace.h @@ -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 |