Skip to content

Commit d191072

Browse files
committed
Check the breakpoint has resolved locations
1 parent c4fad2b commit d191072

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lldb/source/Plugins/InstrumentationRuntime/BoundsSafety/InstrumentationRuntimeBoundsSafety.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,15 @@ void InstrumentationRuntimeBoundsSafety::Activate() {
314314
/*internal=*/true,
315315
/*request_hardware*/ false);
316316

317+
// TODO: Once we have an instrumentation log handle we should log these
318+
// failures (rdar://164920875).
317319
if (!breakpoint)
318320
return;
321+
if (!breakpoint->HasResolvedLocations()) {
322+
assert(0 && "breakpoint has no resolved locations");
323+
process_sp->GetTarget().RemoveBreakpointByID(breakpoint->GetID());
324+
return;
325+
}
319326

320327
// Note: When `sync=true` the suggested stackframe is completely ignored. So
321328
// we use `sync=false`. Is that a bug?

0 commit comments

Comments
 (0)