~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/stacktrace.h

  • Committer: Monty Taylor
  • Date: 2009-03-24 17:44:41 UTC
  • mto: (960.5.2 mordred)
  • mto: This revision was merged to the branch mainline in revision 964.
  • Revision ID: mordred@inaugust.com-20090324174441-nmsq0gwjlgf7f0mt
Changed handlerton to StorageEngine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "global.h"
21
 
 
22
20
#ifdef __cplusplus
23
21
extern "C" {
24
22
#endif
25
23
 
26
 
#if HAVE_BACKTRACE && HAVE_BACKTRACE_SYMBOLS && HAVE_CXXABI_H && HAVE_ABI_CXA_DEMANGLE
 
24
#if defined(HAVE_BACKTRACE) && HAVE_BACKTRACE_SYMBOLS && HAVE_CXXABI_H && HAVE_ABI_CXA_DEMANGLE
27
25
#define BACKTRACE_DEMANGLE 1
28
26
#endif
29
27
 
30
 
#if BACKTRACE_DEMANGLE
 
28
#if defined(BACKTRACE_DEMANGLE)
31
29
  char *my_demangle(const char *mangled_name, int *status);
32
30
#endif
33
31
 
47
45
#endif /* defined HAVE_OS_LINUX */
48
46
 
49
47
#ifdef HAVE_STACKTRACE
50
 
  void print_stacktrace(unsigned char* stack_bottom, ulong thread_stack);
 
48
  void print_stacktrace(unsigned char* stack_bottom, size_t thread_stack);
51
49
  void safe_print_str(const char* name, const char* val, int max_len);
52
50
#else
53
51
/* Define empty prototypes for functions that are not implemented */