diff options
Diffstat (limited to 'runtime/debugger.cc')
-rw-r--r-- | runtime/debugger.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc index a767cf086f..3f67f9e72d 100644 --- a/runtime/debugger.cc +++ b/runtime/debugger.cc @@ -344,16 +344,14 @@ uint32_t Dbg::instrumentation_events_ = 0; // Breakpoints. static std::vector<Breakpoint> gBreakpoints GUARDED_BY(Locks::breakpoint_lock_); -void DebugInvokeReq::VisitRoots(RootCallback* callback, void* arg, const RootInfo& root_info) { - receiver.VisitRootIfNonNull(callback, arg, root_info); // null for static method call. - klass.VisitRoot(callback, arg, root_info); - method.VisitRoot(callback, arg, root_info); +void DebugInvokeReq::VisitRoots(RootVisitor* visitor, const RootInfo& root_info) { + receiver.VisitRootIfNonNull(visitor, root_info); // null for static method call. + klass.VisitRoot(visitor, root_info); + method.VisitRoot(visitor, root_info); } -void SingleStepControl::VisitRoots(RootCallback* callback, void* arg, const RootInfo& root_info) { - if (method_ != nullptr) { - callback(reinterpret_cast<mirror::Object**>(&method_), arg, root_info); - } +void SingleStepControl::VisitRoots(RootVisitor* visitor, const RootInfo& root_info) { + visitor->VisitRootIfNonNull(reinterpret_cast<mirror::Object**>(&method_), root_info); } void SingleStepControl::AddDexPc(uint32_t dex_pc) { |