|
From: <sv...@va...> - 2015-10-15 07:02:05
|
Author: rhyskidd
Date: Thu Oct 15 08:01:57 2015
New Revision: 15706
Log:
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 ==
Modified:
trunk/coregrind/m_signals.c
Modified: trunk/coregrind/m_signals.c
==============================================================================
--- trunk/coregrind/m_signals.c (original)
+++ trunk/coregrind/m_signals.c Thu Oct 15 08:01:57 2015
@@ -959,16 +959,16 @@
".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) \
|