Add missing debugger root visiting.
Bug: 13634574
Change-Id: I2a76f6c43f1d0ad1922f06deb40a71ff651129fd
diff --git a/runtime/debugger.h b/runtime/debugger.h
index 6569cc4..5fbdb37 100644
--- a/runtime/debugger.h
+++ b/runtime/debugger.h
@@ -81,6 +81,9 @@
Mutex lock DEFAULT_MUTEX_ACQUIRED_AFTER;
ConditionVariable cond GUARDED_BY(lock);
+ void VisitRoots(RootCallback* callback, void* arg, uint32_t tid, RootType root_type)
+ SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
+
private:
DISALLOW_COPY_AND_ASSIGN(DebugInvokeReq);
};
@@ -111,6 +114,9 @@
// single-step depth.
int stack_depth;
+ void VisitRoots(RootCallback* callback, void* arg, uint32_t tid, RootType root_type)
+ SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
+
private:
DISALLOW_COPY_AND_ASSIGN(SingleStepControl);
};
@@ -459,6 +465,9 @@
static void DdmSendChunkV(uint32_t type, const iovec* iov, int iov_count)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
+ static void VisitRoots(RootCallback* callback, void* arg)
+ SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
+
/*
* Recent allocation tracking support.
*/