From: Jay Freeman (saurik) <saurik@saurik.com> Date: Sun, 1 Nov 2009 02:55:08 +0000 (+0000) Subject: Attempting a silly x64 fix. X-Git-Tag: v0.9.432~207 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/19c91c37db7d1cc1e02efb764ac68241bc076a54 Attempting a silly x64 fix. --- diff --git a/Mach/Inject.cpp b/Mach/Inject.cpp index 198f2f3..efb53d4 100644 --- a/Mach/Inject.cpp +++ b/Mach/Inject.cpp @@ -91,7 +91,7 @@ void InjectLibrary(pid_t pid) { flavor = ARM_THREAD_STATE; count = ARM_THREAD_STATE_COUNT; push = 0; -#elif defined(__i386__) +#elif defined(__i386__) || defined(__x86_64__) i386_thread_state_t state; flavor = i386_THREAD_STATE; count = i386_THREAD_STATE_COUNT; @@ -119,7 +119,7 @@ void InjectLibrary(pid_t pid) { state.pc &= ~0x1; state.cpsr |= 0x20; } -#elif defined(__i386__) +#elif defined(__i386__) || defined(__x86_64__) frame[0] = 0; frame[1] = data;