]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fill out missing functionality on amd64 OS X to load a fake sigreturn.
authorRhys Kidd <rhyskidd@gmail.com>
Thu, 15 Oct 2015 07:01:57 +0000 (07:01 +0000)
committerRhys Kidd <rhyskidd@gmail.com>
Thu, 15 Oct 2015 07:01:57 +0000 (07:01 +0000)
Also enhance consistency of formatting for x86 OS X section.

No regressions on OS X 10.10

Before:

== 596 tests, 219 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 596 tests, 219 stderr failures, 10 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15706

coregrind/m_signals.c

index e105afa96d3f2485a267969c1d557067df202c97..b255ce5378b0ab4977e0b7a5510ad3820390ba0e 100644 (file)
@@ -959,16 +959,16 @@ extern void my_sigreturn(void);
    ".text\n" \
    ".globl my_sigreturn\n" \
    "my_sigreturn:\n" \
-   "movl $" VG_STRINGIFY(__NR_DARWIN_FAKE_SIGRETURN) ",%eax\n" \
-   "int $0x80"
+   "    movl $" VG_STRINGIFY(__NR_DARWIN_FAKE_SIGRETURN) ",%eax\n" \
+   "    int $0x80\n"
 
 #elif defined(VGP_amd64_darwin)
-   // DDD: todo
 #  define _MY_SIGRETURN(name) \
    ".text\n" \
    ".globl my_sigreturn\n" \
    "my_sigreturn:\n" \
-   "ud2\n"
+   "    movq $" VG_STRINGIFY(__NR_DARWIN_FAKE_SIGRETURN) ",%rax\n" \
+   "    syscall\n"
 
 #elif defined(VGP_s390x_linux)
 #  define _MY_SIGRETURN(name) \