[Lldb-commits] [lldb] [lldb] Print a warning on checksum mismatch (PR #71459)
Pete Lawrence via lldb-commits
lldb-commits at lists.llvm.org
Wed Dec 13 15:45:10 PST 2023
================
@@ -300,6 +300,16 @@ size_t SourceManager::DisplaySourceLinesWithLineNumbersUsingLastFile(
break;
}
}
+
+ Checksum checksum = last_file_sp->GetFileSpec().GetChecksum();
+ if (checksum && checksum != last_file_sp->GetChecksum()) {
+ llvm::call_once(last_file_sp->GetChecksumOnceFlag(), [&]() {
+ s->Printf("warning: source file checksum mismatch between the debug "
----------------
PortalPete wrote:
We could use what I'm working on in my other PR, but we'd have to change this to pass the `CommandReturnObject` instead of just its `Stream` instance (via `&result..GetOutputStream()`).
https://github.com/llvm/llvm-project/pull/71459
More information about the lldb-commits
mailing list