[lldb] Store SupportFiles in SourceManager::File (NFC) (#106639)

To support detecting MD5 checksum mismatches, store a SupportFile rather
than a plain FileSpec in SourceManager::File.
This commit is contained in:
Jonas Devlieghere
2024-08-30 07:18:55 -07:00
committed by GitHub
parent f4ea19b47e
commit ab40ae8ff9
5 changed files with 108 additions and 83 deletions

View File

@@ -1076,8 +1076,8 @@ protected:
target.GetSourceManager().GetLastFile());
if (last_file_sp) {
const bool show_inlines = true;
m_breakpoint_locations.Reset(last_file_sp->GetFileSpec(), 0,
show_inlines);
m_breakpoint_locations.Reset(
last_file_sp->GetSupportFile()->GetSpecOnly(), 0, show_inlines);
SearchFilterForUnconstrainedSearches target_search_filter(
target.shared_from_this());
target_search_filter.Search(m_breakpoint_locations);