llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Ebuka Ezike (da-viper)
<details>
<summary>Changes</summary>
Previously
```
Watchpoint 1 hit:
old value: 2
new value: 4
```
Now
```
Watchpoint 1 hit:
old value: 2
new value: 4
```
---
Full diff: https://github.com/llvm/llvm-project/pull/216351.diff
1 Files Affected:
- (modified) lldb/source/Breakpoint/Watchpoint.cpp (+4-2)
``````````diff
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);
``````````
</details>
https://github.com/llvm/llvm-project/pull/216351
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits