Sfoglia il codice sorgente

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

walking code.
legacy
Sam Hocevar sam 11 anni fa
parent
commit
586a984498
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +1
    -1
      configure.ac
  2. +1
    -1
      src/base/assert.cpp

+ 1
- 1
configure.ac Vedi File

@@ -88,7 +88,7 @@ AC_CHECK_HEADERS(cxxabi.h)
AC_LANG_POP(C++)

dnl Common C functions
AC_CHECK_FUNCS(getcwd _getcwd)
AC_CHECK_FUNCS(getcwd _getcwd backtrace_symbols)


if test "${enable_debug}" = "yes"; then


+ 1
- 1
src/base/assert.cpp Vedi File

@@ -26,7 +26,7 @@ namespace lol

void DumpStack()
{
#if defined HAVE_CXA_DEMANGLE
#if defined HAVE_CXA_DEMANGLE && defined HAVE_BACKTRACE_SYMBOLS
/* Get current stack frames */
void *stack_ptrs[50];
size_t size = backtrace(stack_ptrs, 50);


Caricamento…
Annulla
Salva