LibDebug: Propagate errors throughout DWARF parsing

Splitting this into a separate commit was an afterthought, so this does
not yet feature any fallible operations.
This commit is contained in:
Tim Schumacher 2023-01-22 00:32:08 +01:00 committed by Andreas Kling
parent e235c42e4d
commit e62269650a
Notes: sideshowbarker 2024-07-17 06:33:00 +09:00
17 changed files with 243 additions and 204 deletions

View file

@ -168,7 +168,7 @@ RefPtr<VariablesModel> VariablesModel::create(Debug::ProcessInspector& inspector
auto lib = inspector.library_at(regs.ip());
if (!lib)
return nullptr;
auto variables = lib->debug_info->get_variables_in_current_scope(regs);
auto variables = lib->debug_info->get_variables_in_current_scope(regs).release_value_but_fixme_should_propagate_errors();
return adopt_ref(*new VariablesModel(inspector, move(variables), regs));
}