1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-26 00:57:39 +01:00

Fixup CONFIG_DEBUG_FRAME support.

This commit is contained in:
Arun Sharma 2009-03-17 19:08:58 -07:00
parent 1227c41d20
commit 9607c6407c
3 changed files with 9 additions and 3 deletions

View file

@ -134,8 +134,11 @@ AM_CONDITIONAL([SUPPORT_CXX_EXCEPTIONS], [test x$enable_cxx_exceptions = xyes])
AC_ARG_ENABLE(debug_frame, AC_ARG_ENABLE(debug_frame,
[ --enable-debug-frame Load the ".debug_frame" section if available], [ --enable-debug-frame Load the ".debug_frame" section if available],
[enable_debug_frame=$enableval], [enable_debug_frame=yes]) [enable_debug_frame=$enableval], [enable_debug_frame=no])
AM_CONDITIONAL([CONFIG_DEBUG_FRAME], [test x$enable_debug_frame = xyes]) if test x$enable_debug_frame = xyes; then
AC_DEFINE([CONFIG_DEBUG_FRAME], [], [Enable Debug Frame])
fi
LIBUNWIND___THREAD LIBUNWIND___THREAD
save_LDFLAGS="$LDFLAGS" save_LDFLAGS="$LDFLAGS"

View file

@ -1,5 +1,8 @@
/* include/config.h.in. Generated from configure.in by autoheader. */ /* include/config.h.in. Generated from configure.in by autoheader. */
/* Enable Debug Frame */
#undef CONFIG_DEBUG_FRAME
/* Define to 1 if you have the <asm/ptrace_offsets.h> header file. */ /* Define to 1 if you have the <asm/ptrace_offsets.h> header file. */
#undef HAVE_ASM_PTRACE_OFFSETS_H #undef HAVE_ASM_PTRACE_OFFSETS_H

View file

@ -251,7 +251,7 @@ find_binary_for_address (unw_word_t ip, char *name, size_t name_size)
break; break;
} }
maps_close (&mi); maps_close (&mi);
return ~found; return !found;
#endif #endif
return 1; return 1;