aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectSource.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2024-08-30 07:18:55 -0700
committerGitHub <noreply@github.com>2024-08-30 07:18:55 -0700
commitab40ae8ff9f87b6e3d68cab2c47d692016ede958 (patch)
treef09765750cef4448e40d7c2b977bd94c81931091 /lldb/source/Commands/CommandObjectSource.cpp
parentf4ea19b47e1e5af6682d94ad05ac2e7bca64cf73 (diff)
downloadllvm-ab40ae8ff9f87b6e3d68cab2c47d692016ede958.zip
llvm-ab40ae8ff9f87b6e3d68cab2c47d692016ede958.tar.gz
llvm-ab40ae8ff9f87b6e3d68cab2c47d692016ede958.tar.bz2
[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.
Diffstat (limited to 'lldb/source/Commands/CommandObjectSource.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectSource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectSource.cpp b/lldb/source/Commands/CommandObjectSource.cpp
index 5ddd46a..1a0629c 100644
--- a/lldb/source/Commands/CommandObjectSource.cpp
+++ b/lldb/source/Commands/CommandObjectSource.cpp
@@ -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);