[Lldb-commits] [lldb] [lldb][windows] fix invalid indexes in LLDB_LOG call (PR #188757)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 26 07:47:32 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Charles Zablit (charles-zablit)
<details>
<summary>Changes</summary>
This patch shifts the indexes of the `LLDB_LOG` call by -1 so that they start at 0. Otherwise, the call expects 4 arguments.
---
Full diff: https://github.com/llvm/llvm-project/pull/188757.diff
1 Files Affected:
- (modified) lldb/source/Plugins/ObjectFile/COFF/ObjectFileCOFF.cpp (+1-1)
``````````diff
diff --git a/lldb/source/Plugins/ObjectFile/COFF/ObjectFileCOFF.cpp b/lldb/source/Plugins/ObjectFile/COFF/ObjectFileCOFF.cpp
index dc5b98d217b1e..101fe68d23787 100644
--- a/lldb/source/Plugins/ObjectFile/COFF/ObjectFileCOFF.cpp
+++ b/lldb/source/Plugins/ObjectFile/COFF/ObjectFileCOFF.cpp
@@ -93,7 +93,7 @@ ObjectFileCOFF::CreateInstance(const ModuleSP &module_sp,
return nullptr;
}
- LLDB_LOG(log, "ObjectFileCOFF::ObjectFileCOFF module = {1} ({2}), file = {3}",
+ LLDB_LOG(log, "ObjectFileCOFF::ObjectFileCOFF module = {0} ({1}), file = {2}",
module_sp.get(), module_sp->GetSpecificationDescription(),
file->GetPath());
``````````
</details>
https://github.com/llvm/llvm-project/pull/188757
More information about the lldb-commits
mailing list