Skip to content

Commit 35089f1

Browse files
committed
fix address resolve of a module that is not loaded yet
1 parent 59b4142 commit 35089f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lldb/source/Breakpoint/BreakpointResolverAddress.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ Searcher::CallbackReturn BreakpointResolverAddress::SearchCallback(
141141
Address tmp_address;
142142
if (module_sp->ResolveFileAddress(m_addr.GetOffset(), tmp_address))
143143
m_addr = tmp_address;
144+
else
145+
return Searcher::eCallbackReturnStop;
146+
} else {
147+
// If we didn't find the module, then we can't resolve the address.
148+
return Searcher::eCallbackReturnStop;
144149
}
145150
}
146151

0 commit comments

Comments
 (0)