~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/stacktrace.cc

  • Committer: Monty Taylor
  • Date: 2010-04-16 23:31:59 UTC
  • mto: (1461.2.2 more-valgrind)
  • mto: This revision was merged to the branch mainline in revision 1479.
  • Revision ID: mordred@inaugust.com-20100416233159-3t4cgwcggmtsbh3z
Fixed a symbol oops.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include <cstdio>
37
37
#include <algorithm>
38
38
 
 
39
#if defined(BACKTRACE_DEMANGLE)
 
40
# include <cxxabi.h>
 
41
#endif
 
42
 
39
43
#include "drizzled/definitions.h"
40
44
 
41
45
using namespace std;
74
78
#define SIGRETURN_FRAME_OFFSET 23
75
79
#endif
76
80
 
77
 
 
78
 
#if BACKTRACE_DEMANGLE
 
81
#if defined(BACKTRACE_DEMANGLE)
 
82
 
 
83
static inline char *my_demangle(const char *mangled_name, int *status)
 
84
{
 
85
  return abi::__cxa_demangle(mangled_name, NULL, NULL, status);
 
86
}
 
87
 
79
88
static void my_demangle_symbols(char **addrs, int n)
80
89
{
81
90
  int status, i;