Fix up the breakage when host != target

This commit is contained in:
Arun Sharma 2011-10-31 22:21:34 -07:00
parent 851f14281c
commit d20df8b318
5 changed files with 24 additions and 2 deletions

View File

@ -296,5 +296,6 @@ AC_SUBST(DLLIB)
AC_SUBST(BACKTRACELIB)
AC_CONFIG_FILES(Makefile src/Makefile tests/Makefile tests/check-namespace.sh
doc/Makefile doc/common.tex include/libunwind-common.h)
doc/Makefile doc/common.tex include/libunwind-common.h
include/libunwind.h include/tdep/libunwind_i.h)
AC_OUTPUT

View File

@ -1,6 +1,8 @@
/* Provide a real file - not a symlink - as it would cause multiarch conflicts
when multiple different arch releases are installed simultaneously. */
#ifndef UNW_REMOTE_ONLY
#if defined __arm__
# include "libunwind-arm.h"
#elif defined __hppa__
@ -20,3 +22,9 @@
#else
# error "Unsupported arch"
#endif
#else /* UNW_REMOTE_ONLY */
# include "libunwind-@arch@.h"
#endif /* UNW_REMOTE_ONLY */

View File

@ -1,6 +1,8 @@
/* Provide a real file - not a symlink - as it would cause multiarch conflicts
when multiple different arch releases are installed simultaneously. */
#ifndef UNW_REMOTE_ONLY
#if defined __arm__
# include "tdep-arm/jmpbuf.h"
#elif defined __hppa__
@ -20,3 +22,5 @@
#else
# error "Unsupported arch"
#endif
#endif /* !UNW_REMOTE_ONLY */

View File

@ -1,6 +1,8 @@
/* Provide a real file - not a symlink - as it would cause multiarch conflicts
when multiple different arch releases are installed simultaneously. */
#ifndef UNW_REMOTE_ONLY
#if defined __arm__
# include "tdep-arm/libunwind_i.h"
#elif defined __hppa__
@ -20,3 +22,10 @@
#else
# error "Unsupported arch"
#endif
#else /* UNW_REMOTE_ONLY */
# include "tdep-@arch@/libunwind_i.h"
#endif /* UNW_REMOTE_ONLY */

View File

@ -241,7 +241,7 @@ file_error:
static int
find_binary_for_address (unw_word_t ip, char *name, size_t name_size)
{
#ifdef __linux
#if defined(__linux) && (!UNW_REMOTE_ONLY)
struct map_iterator mi;
int found = 0;
int pid = getpid ();