summaryrefslogtreecommitdiffstats
path: root/components/nacl/loader
diff options
context:
space:
mode:
Diffstat (limited to 'components/nacl/loader')
-rw-r--r--components/nacl/loader/nacl_listener.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/nacl/loader/nacl_listener.cc b/components/nacl/loader/nacl_listener.cc
index e7b8f4c..f527191 100644
--- a/components/nacl/loader/nacl_listener.cc
+++ b/components/nacl/loader/nacl_listener.cc
@@ -109,6 +109,10 @@ int AttachDebugExceptionHandler(const void* info, size_t info_size) {
return result;
}
+void DebugStubPortSelectedHandler(uint16_t port) {
+ g_listener->Send(new NaClProcessHostMsg_DebugStubPortSelected(port));
+}
+
#endif
// Creates the PPAPI IPC channel between the NaCl IRT and the host
@@ -464,6 +468,8 @@ void NaClListener::OnStart(const nacl::NaClStartParams& params) {
#if defined(OS_WIN)
args->broker_duplicate_handle_func = BrokerDuplicateHandle;
args->attach_debug_exception_handler_func = AttachDebugExceptionHandler;
+ args->debug_stub_server_port_selected_handler_func =
+ DebugStubPortSelectedHandler;
#endif
#if defined(OS_LINUX)
args->prereserved_sandbox_size = prereserved_sandbox_size_;