Permalink
Browse files

add mov %edi, %eax instruction for x86_64 architectures which is need…

…ed to override CGErrorBreakpoint in CoreGraphics framework
  • Loading branch information...
1 parent d2c0132 commit 09fb5fac9f564c967a77d6c0fbf48c041964ba19 @dgivone dgivone committed May 10, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 mach_override/mach_override.c
@@ -599,6 +599,7 @@ static AsmInstructionMatch possibleInstructions[] = {
{ 0x5, {0xF8, 0x00, 0x00, 0x00, 0x00}, {0xB8, 0x00, 0x00, 0x00, 0x00} }, // mov $imm, %reg
{ 0x3, {0xFF, 0xFF, 0x00}, {0xFF, 0x77, 0x00} }, // pushq $imm(%rdi)
{ 0x2, {0xFF, 0xFF}, {0x31, 0xC0} }, // xor %eax, %eax
+ { 0x2, {0xFF, 0xFF}, {0x89, 0xF8} }, // mov %edi, %eax
{ 0x0 }
};
#endif

0 comments on commit 09fb5fa

Please sign in to comment.