Changeset 2488


Ignore:
Timestamp:
Feb 25, 2013, 12:45:39 AM (6 years ago)
Author:
sam
Message:

build: look for backtrace_symbols() before enabling the Unix stack
walking code.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r2479 r2488  
    8989
    9090dnl  Common C functions
    91 AC_CHECK_FUNCS(getcwd _getcwd)
     91AC_CHECK_FUNCS(getcwd _getcwd backtrace_symbols)
    9292
    9393
  • trunk/src/base/assert.cpp

    r2479 r2488  
    2727void DumpStack()
    2828{
    29 #if defined HAVE_CXA_DEMANGLE
     29#if defined HAVE_CXA_DEMANGLE && defined HAVE_BACKTRACE_SYMBOLS
    3030    /* Get current stack frames */
    3131    void *stack_ptrs[50];
Note: See TracChangeset for help on using the changeset viewer.