mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-25 08:37:38 +01:00
Fix up the breakage when host != target
This commit is contained in:
parent
c80b9c1175
commit
f4187beed7
5 changed files with 24 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 */
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
|
@ -238,7 +238,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 ();
|
||||
|
|
Loading…
Reference in a new issue