This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
build: look for backtrace_symbols() before enabling the Unix stack
walking code.
legacy
Sam Hocevar
sam
11 years ago
parent
8143b73ffb
commit
586a984498
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
configure.ac
+1
-1
src/base/assert.cpp
+ 1
- 1
configure.ac
View 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
View 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);
Write
Preview
Loading…
Cancel
Save