#1187 Bugfix: compile on aarch64

open
nobody
None
1
2016-12-25
2016-12-25
Anonymous
No

When building for aarch64, the compiler hangs in debughelper.cpp at thise lines:

#else
#define PC_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_EIP]
#define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_ESP]
#define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_EBP]
#endif

i quickly patched it like this, but maybe you can dig to find the corresponding backtrace-commands for that arch.

--- debughelper.cpp 2016-11-25 18:45:18.441818593 +0100
+++ debughelper.cpp 2016-11-25 18:45:31.166659511 +0100
@@ -6,6 +6,9 @@
 #ifndef __GLIBC__
 #define NO_CRASH_HANDLER
 #endif
+#ifdef __aarch64__
+#define NO_CRASH_HANDLER
+#endif
 #ifndef NO_CRASH_HANDLER
 #if (defined(x86_64) || defined(__x86_64__))
 #define CPU_IS_X86_64

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks