828959123a
* gnome option is broken. Disable it. Changelog: What's New in SeaMonkey 2.33 SeaMonkey 2.33 contains the following major changes relative to SeaMonkey 2.32.1: SeaMonkey-specific changes Security notification bars now feature tracking controls. The tracking/privacy preferences pane has been updated. Mozilla platform changes The Flash protected-mode sandbox has been disabled on Windows in order to evaluate the stability impact of protected mode. Insecure RC4 ciphers are no longer accepted whenever possible. Certificates with 1024-bit RSA keys have been phased out. A subset of the Media Source Extensions (MSE) API has been implemented in order to allow native HTML5 playback on YouTube. Full support is on the way. The performance of the new ES6 generator functions has been improved. Also see Firefox 36 for Developers. Fixed several stability issues. Bugs fixed in this release SeaMonkey bugs Thunderbird bugs (including both shared MailNews- and Thunderbird-only bugs) Relevant security fixes are listed on Security Advisories for SeaMonkey. * Security advisories are not available yet.
59 lines
2.5 KiB
C++
59 lines
2.5 KiB
C++
$NetBSD: patch-mozilla_js_src_asmjs_AsmJSSignalHandlers.cpp,v 1.2 2015/03/17 19:50:42 ryoon Exp $
|
|
|
|
--- mozilla/js/src/asmjs/AsmJSSignalHandlers.cpp.orig 2015-03-09 05:34:25.000000000 +0000
|
|
+++ mozilla/js/src/asmjs/AsmJSSignalHandlers.cpp
|
|
@@ -504,8 +504,38 @@ AsmJSFaultHandler(LPEXCEPTION_POINTERS e
|
|
#elif defined(XP_MACOSX)
|
|
# include <mach/exc.h>
|
|
|
|
+# if defined(ARM_THREAD_STATE)
|
|
+typedef arm_thread_state_t moz_platform_thread_state_t;
|
|
+static const thread_state_flavor_t MOZ_PLATFORM_THREAD_STATE_FLAVOR = ARM_THREAD_STATE;
|
|
+static const mach_msg_type_number_t MOZ_PLATFORM_THREAD_STATE_COUNT = ARM_THREAD_STATE_COUNT;
|
|
+
|
|
+# elif defined(PPC_THREAD_STATE)
|
|
+typedef ppc_thread_state_t moz_platform_thread_state_t;
|
|
+static const thread_state_flavor_t MOZ_PLATFORM_THREAD_STATE_FLAVOR = PPC_THREAD_STATE;
|
|
+static const mach_msg_type_number_t MOZ_PLATFORM_THREAD_STATE_COUNT = PPC_THREAD_STATE_COUNT;
|
|
+
|
|
+# elif defined(PPC_THREAD_STATE64)
|
|
+typedef ppc_thread_state64_t moz_platform_thread_state_t;
|
|
+static const thread_state_flavor_t MOZ_PLATFORM_THREAD_STATE_FLAVOR = PPC_THREAD_STATE64;
|
|
+static const mach_msg_type_number_t MOZ_PLATFORM_THREAD_STATE_COUNT = PPC_THREAD_STATE64_COUNT;
|
|
+
|
|
+# elif defined(x86_THREAD_STATE)
|
|
+typedef x86_thread_state_t moz_platform_thread_state_t;
|
|
+static const thread_state_flavor_t MOZ_PLATFORM_THREAD_STATE_FLAVOR = x86_THREAD_STATE;
|
|
+static const mach_msg_type_number_t MOZ_PLATFORM_THREAD_STATE_COUNT = x86_THREAD_STATE_COUNT;
|
|
+
|
|
+# else
|
|
+# error Type unknown for platform-specific thread_state_t
|
|
+# endif
|
|
+
|
|
+# if defined(__DARWIN_UNIX03)
|
|
+# define REG_FIELD(NAME) __ ## NAME
|
|
+# else
|
|
+# define REG_FIELD(NAME) NAME
|
|
+# endif
|
|
+
|
|
static uint8_t **
|
|
-ContextToPC(x86_thread_state_t &state)
|
|
+ContextToPC(moz_platform_thread_state_t &state)
|
|
{
|
|
# if defined(JS_CPU_X64)
|
|
static_assert(sizeof(state.uts.ts64.__rip) == sizeof(void*),
|
|
@@ -617,10 +647,11 @@ HandleMachException(JSRuntime *rt, const
|
|
mach_port_t rtThread = request.body.thread.name;
|
|
|
|
// Read out the JSRuntime thread's register state.
|
|
- x86_thread_state_t state;
|
|
- unsigned int count = x86_THREAD_STATE_COUNT;
|
|
+ moz_platform_thread_state_t state;
|
|
+ thread_state_flavor_t flavor = MOZ_PLATFORM_THREAD_STATE_FLAVOR;
|
|
+ mach_msg_type_number_t count = MOZ_PLATFORM_THREAD_STATE_COUNT;
|
|
kern_return_t kret;
|
|
- kret = thread_get_state(rtThread, x86_THREAD_STATE, (thread_state_t)&state, &count);
|
|
+ kret = thread_get_state(rtThread, flavor, (thread_state_t)&state, &count);
|
|
if (kret != KERN_SUCCESS)
|
|
return false;
|
|
|