https://github.com/da-viper created
https://github.com/llvm/llvm-project/pull/216351
Previously
```
Watchpoint 1 hit:
old value: 2
new value: 4
```
Now
```
Watchpoint 1 hit:
old value: 2
new value: 4
```
>From 731202ca5ad9bf05bcd1c8c3436d3ced37bf6552 Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <[email protected]>
Date: Fri, 14 Aug 2026 17:02:27 +0100
Subject: [PATCH] [lldb] Indent Watchpoint's new value correctly.
Previously
```
Watchpoint 1 hit:
old value: 2
new value: 4
```
Now
```
Watchpoint 1 hit:
old value: 2
new value: 4
```
---
lldb/source/Breakpoint/Watchpoint.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
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);
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits