~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/stacktrace.cc

  • Committer: Monty Taylor
  • Date: 2010-02-16 07:05:28 UTC
  • mto: (1471.3.2 drizzled-as-lib)
  • mto: This revision was merged to the branch mainline in revision 1479.
  • Revision ID: mordred@inaugust.com-20100216070528-psvrbp9r3ue4tsh8
Changed build to build the almost all of drizzle into libdrizzled and then
have a small main.cc program which links in libdrizzled. This will allow us
to easily track exported API symbols and symbol changes.

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;