Permalink
Browse files

Merge pull request #37 from realestate-com-au/rea-changes

Fixed armv6 compile errors
  • Loading branch information...
2 parents e58664f + d9943d8 commit 8ddd57d5cc642f24d60d9034d9e1eef696af2de9 @domesticcatsoftware committed Jan 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 DCIntrospect/DCIntrospect.m
@@ -50,7 +50,7 @@ static bool AmIBeingDebugged(void)
}
#if TARGET_CPU_ARM
-#define DEBUGSTOP(signal) __asm__ __volatile__ ("mov r0, %0\nmov r1, %1\nmov r12, #37\nswi 128\n" : : "r"(getpid ()), "r"(signal) : "r12", "r0", "r1", "cc");
+#define DEBUGSTOP(signal) __asm__ __volatile__ ("mov r0, %0\nmov r1, %1\nmov r12, %2\nswi 128\n" : : "r"(getpid ()), "r"(signal), "r"(37) : "r12", "r0", "r1", "cc");
#define DEBUGGER do { int trapSignal = AmIBeingDebugged () ? SIGINT : SIGSTOP; DEBUGSTOP(trapSignal); if (trapSignal == SIGSTOP) { DEBUGSTOP (SIGINT); } } while (false);
#else
#define DEBUGGER do { int trapSignal = AmIBeingDebugged () ? SIGINT : SIGSTOP; __asm__ __volatile__ ("pushl %0\npushl %1\npush $0\nmovl %2, %%eax\nint $0x80\nadd $12, %%esp" : : "g" (trapSignal), "g" (getpid ()), "n" (37) : "eax", "cc"); } while (false);

0 comments on commit 8ddd57d

Please sign in to comment.