From: Rhys Kidd Date: Thu, 15 Oct 2015 07:01:57 +0000 (+0000) Subject: Fill out missing functionality on amd64 OS X to load a fake sigreturn. X-Git-Tag: svn/VALGRIND_3_12_0~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=042e76373ef2e9f1cad9c916c32df870f03ee430;p=thirdparty%2Fvalgrind.git Fill out missing functionality on amd64 OS X to load a fake sigreturn. 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 --- diff --git a/coregrind/m_signals.c b/coregrind/m_signals.c index e105afa96d..b255ce5378 100644 --- a/coregrind/m_signals.c +++ b/coregrind/m_signals.c @@ -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) \