[lldb] Change SymbolContext::GetAddressRangeFromHereToEndLine to return Expected (NFC) (#110718)

Signed-off-by: AbdAlRahman Gad <abdobngad@gmail.com>
Co-authored-by: Adrian Prantl <adrian.prantl@gmail.com>
This commit is contained in:
AbdAlRahman Gad
2024-10-08 20:04:52 +03:00
committed by GitHub
parent cc5ddae5e2
commit 6f2ebc435f
4 changed files with 20 additions and 22 deletions

View File

@@ -605,8 +605,11 @@ void SBThread::StepInto(const char *target_name, uint32_t end_line,
if (end_line == LLDB_INVALID_LINE_NUMBER)
range = sc.line_entry.range;
else {
if (!sc.GetAddressRangeFromHereToEndLine(end_line, range, error.ref()))
llvm::Error err = sc.GetAddressRangeFromHereToEndLine(end_line, range);
if (err) {
error = Status::FromErrorString(llvm::toString(std::move(err)).c_str());
return;
}
}
const LazyBool step_out_avoids_code_without_debug_info =