Implement Dbg::Disconnected and Dbg::UndoDebuggerSuspensions.
You can now start and stop oatexec-based apps with DDMS running, with
no UNIMPLEMENTEDs.
Change-Id: Ic53e7bdd4ddd3ed93f9d807499d991ea30f48810
diff --git a/src/thread_list.h b/src/thread_list.h
index 6dd7455..d19622e 100644
--- a/src/thread_list.h
+++ b/src/thread_list.h
@@ -40,6 +40,7 @@
void SuspendAll(bool for_debugger = false);
void SuspendSelfForDebugger();
void RunWhileSuspended(Thread* thread, void (*callback)(void*), void* arg);
+ void UndoDebuggerSuspensions();
// Iterates over all the threads. The caller must hold the thread list lock.
void ForEach(void (*callback)(Thread*));
@@ -65,6 +66,8 @@
void SuspendAllDaemonThreads();
void WaitForNonDaemonThreadsToExit();
+ static void ModifySuspendCount(Thread* thread, int delta, bool for_debugger);
+
bool verbose_;
mutable Mutex thread_list_lock_;