diff options
| author | Kurt Roeckx <[email protected]> | 2014-04-22 21:46:22 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2014-04-23 10:56:01 +0200 |
| commit | 02cefdaa6429e620d6457fdb3ad9934f194c5a93 (patch) | |
| tree | 7825fc20716a17ec96529d0b9e289ed549bf3185 /backends | |
| parent | 3232479483cad695d1872b879128a23da3953a7d (diff) | |
Unwinding is only supported on Linux
Signed-off-by: Kurt Roeckx <[email protected]>
Diffstat (limited to 'backends')
| -rw-r--r-- | backends/ChangeLog | 5 | ||||
| -rw-r--r-- | backends/i386_initreg.c | 2 | ||||
| -rw-r--r-- | backends/x86_64_initreg.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/backends/ChangeLog b/backends/ChangeLog index 94290b7c..748d0a06 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,8 @@ +2014-04-22 Kurt Roeckx <[email protected]> + + * i386_initreg.c: Make Linux only. + * x86_64_initreg.c: Make Linux only. + 2014-04-13 Mark Wielaard <[email protected]> * Makefile.am: Remove libelf and libdw definitions when MUDFLAP diff --git a/backends/i386_initreg.c b/backends/i386_initreg.c index 9e819a47..51fd9ea6 100644 --- a/backends/i386_initreg.c +++ b/backends/i386_initreg.c @@ -44,7 +44,7 @@ i386_set_initial_registers_tid (pid_t tid __attribute__ ((unused)), ebl_tid_registers_t *setfunc __attribute__ ((unused)), void *arg __attribute__ ((unused))) { -#if !defined __i386__ && !defined __x86_64__ +#if (!defined __i386__ && !defined __x86_64__) || !defined(__linux__) return false; #else /* __i386__ || __x86_64__ */ struct user_regs_struct user_regs; diff --git a/backends/x86_64_initreg.c b/backends/x86_64_initreg.c index 0c493640..db9216ed 100644 --- a/backends/x86_64_initreg.c +++ b/backends/x86_64_initreg.c @@ -44,7 +44,7 @@ x86_64_set_initial_registers_tid (pid_t tid __attribute__ ((unused)), ebl_tid_registers_t *setfunc __attribute__ ((unused)), void *arg __attribute__ ((unused))) { -#ifndef __x86_64__ +#if !defined(__x86_64__) || !defined(__linux__) return false; #else /* __x86_64__ */ struct user_regs_struct user_regs; |
