summaryrefslogtreecommitdiffstats
path: root/chrome/nacl
diff options
context:
space:
mode:
authorhalyavin@chromium.org <halyavin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-14 12:39:18 +0000
committerhalyavin@chromium.org <halyavin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-14 12:39:18 +0000
commitd571c03bfa28245f15ee710cf3ba27f590191dd9 (patch)
tree9cbe409ff75fb6a2a4c8d1c2ae3262519353c535 /chrome/nacl
parentcabfd91852ff3f30d6dc80441c58513534f84ccb (diff)
downloadchromium_src-d571c03bfa28245f15ee710cf3ba27f590191dd9.zip
chromium_src-d571c03bfa28245f15ee710cf3ba27f590191dd9.tar.gz
chromium_src-d571c03bfa28245f15ee710cf3ba27f590191dd9.tar.bz2
NaCl: Bind TCP socket for the GDB debug stub in the browser process
This allows the debug stub to work without "--no-sandbox". This change is only for POSIX since Windows requires very different code. BUG= http://code.google.com/p/nativeclient/issues/detail?id=3007 TEST= launch NaCl page in chrome with --enable-nacl-debug but without --no-sandbox try to connect nacl gdb. Review URL: https://chromiumcodereview.appspot.com/10928050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156784 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/nacl')
-rw-r--r--chrome/nacl/nacl_listener.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/nacl/nacl_listener.cc b/chrome/nacl/nacl_listener.cc
index 7d1fde6..d8e5dad 100644
--- a/chrome/nacl/nacl_listener.cc
+++ b/chrome/nacl/nacl_listener.cc
@@ -260,6 +260,10 @@ void NaClListener::OnMsgStart(const nacl::NaClStartParams& params) {
args->imc_bootstrap_handle = nacl::ToNativeHandle(handles[0]);
args->enable_exception_handling = params.enable_exception_handling;
args->enable_debug_stub = params.enable_debug_stub;
+#if defined(OS_LINUX) || defined(OS_MACOSX)
+ args->debug_stub_server_bound_socket_fd = nacl::ToNativeHandle(
+ params.debug_stub_server_bound_socket);
+#endif
#if defined(OS_WIN)
args->broker_duplicate_handle_func = BrokerDuplicateHandle;
args->attach_debug_exception_handler_func = AttachDebugExceptionHandler;