[lldb] Refactor argument group by SourceLocationSpec (NFCI)

This patch refactors a good part of the code base turning the usual
FileSpec, Line, Column, CheckInlines, ExactMatch arguments into a
SourceLocationSpec object.

This change is required for a following patch that will add handling of the
column line information when doing symbol resolution.

Differential Revision: https://reviews.llvm.org/D100965

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
This commit is contained in:
Med Ismail Bennani
2021-05-04 23:03:10 +00:00
parent 36cec26b38
commit 3e2ed74405
28 changed files with 231 additions and 216 deletions

View File

@@ -857,12 +857,13 @@ SBError SBThread::StepOverUntil(lldb::SBFrame &sb_frame,
std::vector<addr_t> step_over_until_addrs;
const bool abort_other_plans = false;
const bool stop_other_threads = false;
const bool check_inlines = true;
const bool exact = false;
// TODO: Handle SourceLocationSpec column information
SourceLocationSpec location_spec(
step_file_spec, line, /*column=*/llvm::None, /*check_inlines=*/true,
/*exact_match=*/false);
SymbolContextList sc_list;
frame_sc.comp_unit->ResolveSymbolContext(step_file_spec, line,
check_inlines, exact,
frame_sc.comp_unit->ResolveSymbolContext(location_spec,
eSymbolContextLineEntry, sc_list);
const uint32_t num_matches = sc_list.GetSize();
if (num_matches > 0) {