[Lldb-commits] [lldb] eb079b0 - [lldb] Indent Watchpoint's new value correctly. (#216351)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 14 10:49:03 PDT 2026
Author: Ebuka Ezike
Date: 2026-08-14T18:48:56+01:00
New Revision: eb079b0b1cbbb85265fd096f7c2ef2bb89637904
URL: https://github.com/llvm/llvm-project/commit/eb079b0b1cbbb85265fd096f7c2ef2bb89637904
DIFF: https://github.com/llvm/llvm-project/commit/eb079b0b1cbbb85265fd096f7c2ef2bb89637904.diff
LOG: [lldb] Indent Watchpoint's new value correctly. (#216351)
Previously
```
Watchpoint 1 hit:
old value: 2
new value: 4
```
Now
```
Watchpoint 1 hit:
old value: 2
new value: 4
```
Added:
Modified:
lldb/source/Breakpoint/Watchpoint.cpp
Removed:
################################################################################
diff --git a/lldb/source/Breakpoint/Watchpoint.cpp b/lldb/source/Breakpoint/Watchpoint.cpp
index ca03d54ffd0bf..e839c8b9f30e7 100644
--- a/lldb/source/Breakpoint/Watchpoint.cpp
+++ b/lldb/source/Breakpoint/Watchpoint.cpp
@@ -309,8 +309,10 @@ bool Watchpoint::DumpSnapshots(Stream *s, const char *prefix) const {
}
if (m_new_value_sp) {
- if (values_ss.GetSize())
- values_ss.PutCString("\n");
+ if (values_ss.GetSize()) {
+ values_ss.PutChar('\n');
+ values_ss.Indent(prefix);
+ }
if (auto *new_value_cstr = m_new_value_sp->GetValueAsCString())
values_ss.Printf("new value: %s", new_value_cstr);
More information about the lldb-commits
mailing list