diff --git a/configure.in b/configure.in index 1446d020..aea8fc93 100644 --- a/configure.in +++ b/configure.in @@ -134,8 +134,11 @@ AM_CONDITIONAL([SUPPORT_CXX_EXCEPTIONS], [test x$enable_cxx_exceptions = xyes]) AC_ARG_ENABLE(debug_frame, [ --enable-debug-frame Load the ".debug_frame" section if available], -[enable_debug_frame=$enableval], [enable_debug_frame=yes]) -AM_CONDITIONAL([CONFIG_DEBUG_FRAME], [test x$enable_debug_frame = xyes]) +[enable_debug_frame=$enableval], [enable_debug_frame=no]) +if test x$enable_debug_frame = xyes; then + AC_DEFINE([CONFIG_DEBUG_FRAME], [], [Enable Debug Frame]) +fi + LIBUNWIND___THREAD save_LDFLAGS="$LDFLAGS" diff --git a/include/config.h.in b/include/config.h.in index fcd2ae4e..800d3b93 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -1,5 +1,8 @@ /* include/config.h.in. Generated from configure.in by autoheader. */ +/* Enable Debug Frame */ +#undef CONFIG_DEBUG_FRAME + /* Define to 1 if you have the header file. */ #undef HAVE_ASM_PTRACE_OFFSETS_H diff --git a/src/dwarf/Gfind_proc_info-lsb.c b/src/dwarf/Gfind_proc_info-lsb.c index e2fd4fea..e3ec9ad1 100644 --- a/src/dwarf/Gfind_proc_info-lsb.c +++ b/src/dwarf/Gfind_proc_info-lsb.c @@ -251,7 +251,7 @@ find_binary_for_address (unw_word_t ip, char *name, size_t name_size) break; } maps_close (&mi); - return ~found; + return !found; #endif return 1;