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

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

Issue 7164001: Resurrection of "Hooks for out-of-process (OOP) debugger" CL. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 6 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
Index: src/trusted/service_runtime/sel_ldr_standard.c
===================================================================
--- src/trusted/service_runtime/sel_ldr_standard.c (revision 5665)
+++ src/trusted/service_runtime/sel_ldr_standard.c (working copy)
@@ -31,6 +31,7 @@
#include "native_client/src/trusted/service_runtime/nacl_app_thread.h"
#include "native_client/src/trusted/service_runtime/nacl_closure.h"
#include "native_client/src/trusted/service_runtime/nacl_debug_init.h"
+#include "native_client/src/trusted/service_runtime/nacl_oop_debugger_hooks.h"
#include "native_client/src/trusted/service_runtime/nacl_sync_queue.h"
#include "native_client/src/trusted/service_runtime/nacl_syscall_common.h"
#include "native_client/src/trusted/service_runtime/nacl_text.h"
@@ -701,6 +702,9 @@
/* We are ready to distinguish crashes in trusted and untrusted code. */
NaClSignalRegisterApp(nap);
+ /* NaClApp initialization is completed, call OOP debugger hook. */
+ NaClOopDebuggerAppCreateHook(nap);
+
NaClXMutexLock(&nap->mu);
nap->running = 1;
NaClXMutexUnlock(&nap->mu);
@@ -760,6 +764,8 @@
nap->debug_stub_callbacks->process_exit_hook(nap->exit_status);
}
+ NaClOopDebuggerAppExitHook(nap->exit_status);
+
return (nap->exit_status);
}
« no previous file with comments | « src/trusted/service_runtime/osx/nacl_oop_debugger_hooks.c ('k') | src/trusted/service_runtime/service_runtime.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698