Branch: Tag:

2008-09-04

2008-09-04 20:31:07 by Martin Stjernholm <mast@lysator.liu.se>

Disable the dmalloc C backtraces less bluntly.

Rev: src/dmalloc.h:1.68
Rev: src/pike_memory.c:1.193

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: dmalloc.h,v 1.67 2008/09/03 19:47:20 grubba Exp $ + || $Id: dmalloc.h,v 1.68 2008/09/04 20:31:07 mast Exp $   */      #ifndef DMALLOC_H
15:   PMOD_EXPORT extern void *debug_xrealloc(void *,size_t);   PMOD_EXPORT char *debug_xstrdup(const char *src);    - #if defined (HAVE_EXECINFO_H) && defined (HAVE_BACKTRACE) && defined(DMALLOC_C_STACK_TRACE) + #if defined (HAVE_EXECINFO_H) && defined (HAVE_BACKTRACE)   /* GNU libc provides some tools to inspect the stack. */   #include <execinfo.h>   typedef void *c_stack_frame; - #define C_STACK_TRACE +       #define DUMP_C_STACK_TRACE() do { \    c_stack_frame bt[100]; \
28:    } while (0)      #else + #undef DMALLOC_C_STACK_TRACE   #define DUMP_C_STACK_TRACE() do {} while (0)   #endif