1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-05-21 20:35:18 +02: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,
[ --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"

View file

@ -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 <asm/ptrace_offsets.h> header file. */
#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;
}
maps_close (&mi);
return ~found;
return !found;
#endif
return 1;