summaryrefslogtreecommitdiffstats
path: root/runtime/debugger.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/debugger.cc')
-rw-r--r--runtime/debugger.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc
index 7144577acb..a1ae236397 100644
--- a/runtime/debugger.cc
+++ b/runtime/debugger.cc
@@ -3153,6 +3153,11 @@ static const Breakpoint* FindFirstBreakpointForMethod(mirror::ArtMethod* m)
return nullptr;
}
+bool Dbg::MethodHasAnyBreakpoints(mirror::ArtMethod* method) {
+ ReaderMutexLock mu(Thread::Current(), *Locks::breakpoint_lock_);
+ return FindFirstBreakpointForMethod(method) != nullptr;
+}
+
// Sanity checks all existing breakpoints on the same method.
static void SanityCheckExistingBreakpoints(mirror::ArtMethod* m,
DeoptimizationRequest::Kind deoptimization_kind)