From fb335fe0cf9bce0888dd72b84359e83cc5b08991 Mon Sep 17 00:00:00 2001 From: "mseaborn@chromium.org" Date: Sat, 24 Mar 2012 18:11:38 +0000 Subject: NaCl: Make hardware exception handling work on 64-bit Windows In order to support untrusted hardware exception handling on 64-bit Windows, we need to have a 64-bit process attach as a debugger to the 64-bit NaCl loader process, so we extend the NaCl broker process to do this. The new code in nacl_broker_listener.cc for attaching a 64-bit debugger is similar to the 32-bit code in nacl_process_host.cc. I intend to unify the two in a later change. BUG=http://code.google.com/p/nativeclient/issues/detail?id=2651 TEST=run_inbrowser_exception_test in nacl_integration Review URL: https://chromiumcodereview.appspot.com/9835003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128764 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/nacl_messages.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'chrome/common/nacl_messages.h') diff --git a/chrome/common/nacl_messages.h b/chrome/common/nacl_messages.h index 4a348ce..9ab79c6 100644 --- a/chrome/common/nacl_messages.h +++ b/chrome/common/nacl_messages.h @@ -33,6 +33,17 @@ IPC_MESSAGE_CONTROL2(NaClProcessMsg_LoaderLaunched, std::wstring, /* channel ID for the loader */ base::ProcessHandle /* loader process handle */) +// Tells the NaCl broker to attach a debug exception handler to the +// given NaCl loader process. +IPC_MESSAGE_CONTROL1(NaClProcessMsg_LaunchDebugExceptionHandler, + int32 /* pid */) + +// Notify the browser process that the broker process finished +// attaching a debug exception handler to the given NaCl loader +// process. +IPC_MESSAGE_CONTROL1(NaClProcessMsg_DebugExceptionHandlerLaunched, + int32 /* pid */) + // Notify the broker that all loader processes have been terminated and it // should shutdown. IPC_MESSAGE_CONTROL0(NaClProcessMsg_StopBroker) -- cgit v1.1