Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Issue 206493005: Provide chrome the option of learning the debug stub port chosen by nacl. (Closed)

Created:
6 years, 9 months ago by bradn
Modified:
6 years, 8 months ago
Reviewers:
Mark Seaborn
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Provide chrome the option of learning the debug stub port chosen by nacl. On mac/linux the debug stub port is allocated chrome side and provided to Native Client. On Windows (where socket handles cannot be passed between processes), the debug port must be allocated by the nacl process (which can only happen when the outer sandbox is disabled). Propagate the debug port selected by the nacl side to the task manager to make it available to the user and debugging extensions. BUG=crbug.com/328714 TEST=None R=mseaborn@chromium.org Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=12967

Patch Set 1 #

Total comments: 10

Patch Set 2 : review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -11 lines) Patch
M src/public/chrome_main.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/trusted/debug_stub/nacl_debug.cc View 1 3 chunks +15 lines, -9 lines 0 comments Download
M src/trusted/debug_stub/transport.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/trusted/debug_stub/transport_common.cc View 2 chunks +17 lines, -2 lines 0 comments Download
M src/trusted/service_runtime/sel_ldr.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/trusted/service_runtime/sel_ldr.c View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/trusted/service_runtime/sel_main_chrome.c View 1 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
bradn
6 years, 9 months ago (2014-03-20 21:09:59 UTC) #1
bradn
ping?
6 years, 9 months ago (2014-03-25 17:52:35 UTC) #2
Mark Seaborn
LGTM https://codereview.chromium.org/206493005/diff/1/src/public/chrome_main.h File src/public/chrome_main.h (right): https://codereview.chromium.org/206493005/diff/1/src/public/chrome_main.h#newcode103 src/public/chrome_main.h:103: * Callback called when debug stub port is ...
6 years, 9 months ago (2014-03-26 23:17:35 UTC) #3
bradn
https://codereview.chromium.org/206493005/diff/1/src/public/chrome_main.h File src/public/chrome_main.h (right): https://codereview.chromium.org/206493005/diff/1/src/public/chrome_main.h#newcode103 src/public/chrome_main.h:103: * Callback called when debug stub port is know. ...
6 years, 8 months ago (2014-04-01 18:31:20 UTC) #4
bradn
Committed patchset #2 manually as r12967 (presubmit successful).
6 years, 8 months ago (2014-04-01 20:34:31 UTC) #5
Mark Seaborn
This breaks NaCl's debug stub tests when rolled into Chromium: ** Signal 31 from trusted ...
6 years, 8 months ago (2014-04-04 00:22:44 UTC) #6
Mark Seaborn
6 years, 8 months ago (2014-04-04 00:33:21 UTC) #7
Message was sent while issue was closed.
On 2014/04/04 00:22:44, Mark Seaborn wrote:
> I think you'll need to change the sandbox policy for the NaCl process
> on the Chromium side to allow getsockname().

Actually, no, you just need to make sure the following is only done on Windows:

  nap->debug_stub_port = g_socket_binding->GetBoundPort();

Powered by Google App Engine
This is Rietveld 408576698