[Lldb-commits] [lldb] [lldb] fix set SBLineEntryColumn (PR #130435)
via lldb-commits
lldb-commits at lists.llvm.org
Sat Mar 8 11:53:43 PST 2025
https://github.com/Da-Viper created https://github.com/llvm/llvm-project/pull/130435
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.
>From 02c34e87db59a0b87887aba479afbab70925241b Mon Sep 17 00:00:00 2001
From: Ezike Ebuka <yerimyah1 at gmail.com>
Date: Sat, 8 Mar 2025 19:47:17 +0000
Subject: [PATCH] [lldb] fix set SBLineEntryColumn
---
lldb/source/API/SBLineEntry.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 {
More information about the lldb-commits
mailing list