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

Unified Diff: src/trusted/service_runtime/sel_main_chrome.c

Issue 206493005: Provide chrome the option of learning the debug stub port chosen by nacl. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: review fixes Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/service_runtime/sel_ldr.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/sel_main_chrome.c
diff --git a/src/trusted/service_runtime/sel_main_chrome.c b/src/trusted/service_runtime/sel_main_chrome.c
index 28b204f8cc55cfe2f6f7393b4497652dd91f1a3d..dd21b948c0932d27166f350aea6e603161754034 100644
--- a/src/trusted/service_runtime/sel_main_chrome.c
+++ b/src/trusted/service_runtime/sel_main_chrome.c
@@ -76,6 +76,7 @@ struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void) {
#if NACL_LINUX || NACL_OSX
args->debug_stub_server_bound_socket_fd = NACL_INVALID_SOCKET;
#endif
+ args->debug_stub_server_port_selected_handler_func = NULL;
args->create_memory_object_func = NULL;
args->validation_cache = NULL;
#if NACL_WINDOWS
@@ -312,6 +313,9 @@ int NaClChromeMainLoad(struct NaClApp *nap,
if (!NaClDebugInit(nap)) {
goto done;
}
+ if (NULL != args->debug_stub_server_port_selected_handler_func) {
+ args->debug_stub_server_port_selected_handler_func(nap->debug_stub_port);
+ }
}
free(args);
« no previous file with comments | « src/trusted/service_runtime/sel_ldr.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698