[Lldb-commits] [lldb] [lldb] fix set SBLineEntryColumn (PR #130435)
via lldb-commits
lldb-commits at lists.llvm.org
Sat Mar 8 11:54:15 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: None (Da-Viper)
<details>
<summary>Changes</summary>
Calling the public API `SBLineEntry::SetColumn()` sets the row instead of the column.
This probably should be backported as it has been since version 3.4.
---
Full diff: https://github.com/llvm/llvm-project/pull/130435.diff
1 Files Affected:
- (modified) lldb/source/API/SBLineEntry.cpp (+1-1)
``````````diff
diff --git a/lldb/source/API/SBLineEntry.cpp b/lldb/source/API/SBLineEntry.cpp
index 216ea6d18eab8..0f4936f32a074 100644
--- a/lldb/source/API/SBLineEntry.cpp
+++ b/lldb/source/API/SBLineEntry.cpp
@@ -137,7 +137,7 @@ void SBLineEntry::SetLine(uint32_t line) {
void SBLineEntry::SetColumn(uint32_t column) {
LLDB_INSTRUMENT_VA(this, column);
- ref().line = column;
+ ref().column = column;
}
bool SBLineEntry::operator==(const SBLineEntry &rhs) const {
``````````
</details>
https://github.com/llvm/llvm-project/pull/130435
More information about the lldb-commits
mailing list