~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/stacktrace.h

  • Committer: Brian Aker
  • Date: 2009-05-11 17:50:22 UTC
  • Revision ID: brian@gaz-20090511175022-y35q9ky6uh9ldcjt
Replacing Sun employee copyright headers (aka... anything done by a Sun
employee is copyright by Sun).

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 */