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

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

Issue 6995160: Hooks for out-of-process (OOP) debugger. (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/nacl_app_thread.c
===================================================================
--- src/trusted/service_runtime/nacl_app_thread.c (revision 5621)
+++ src/trusted/service_runtime/nacl_app_thread.c (working copy)
@@ -12,6 +12,7 @@
#include "native_client/src/trusted/service_runtime/nacl_desc_effector_ldr.h"
#include "native_client/src/trusted/service_runtime/nacl_globals.h"
+#include "native_client/src/trusted/service_runtime/nacl_oop_debugger_hooks.h"
#include "native_client/src/trusted/service_runtime/nacl_tls.h"
#include "native_client/src/trusted/service_runtime/nacl_switch_to_app.h"
#include "native_client/src/trusted/service_runtime/nacl_stack_safety.h"
@@ -52,6 +53,8 @@
natp->nap->debug_stub_callbacks->thread_create_hook(natp);
}
+ NaClOopDebuggerThreadCreateHook(natp);
+
/*
* We need to set an exception handler in every thread we start,
* otherwise the system's default handler is called and a message box is
@@ -142,6 +145,7 @@
if (NULL != natp->nap->debug_stub_callbacks) {
natp->nap->debug_stub_callbacks->thread_exit_hook(natp);
}
+ NaClOopDebuggerThreadExitHook(natp, natp->nap->exit_status);
NaClThreadDtor(&natp->thread);
NaClSignalStackUnregister();

Powered by Google App Engine
This is Rietveld 408576698