[Lldb-commits] [lldb] [lldb] Add missing newline to po warning (PR #176257)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 15 14:02:12 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Dave Lee (kastiglione)
<details>
<summary>Changes</summary>
Follow up fix to #<!-- -->175847
---
Full diff: https://github.com/llvm/llvm-project/pull/176257.diff
3 Files Affected:
- (modified) lldb/source/DataFormatters/ValueObjectPrinter.cpp (+1-1)
- (modified) lldb/test/API/lang/objc/failing-description/TestObjCFailingDescription.py (+2-2)
- (modified) lldb/test/API/lang/objc/struct-description/TestObjCStructDescription.py (+2-2)
``````````diff
diff --git a/lldb/source/DataFormatters/ValueObjectPrinter.cpp b/lldb/source/DataFormatters/ValueObjectPrinter.cpp
index bdad8c0cc2343..f8b49075edd19 100644
--- a/lldb/source/DataFormatters/ValueObjectPrinter.cpp
+++ b/lldb/source/DataFormatters/ValueObjectPrinter.cpp
@@ -101,7 +101,7 @@ llvm::Error ValueObjectPrinter::PrintValueObject() {
llvm::Expected<std::string> object_desc_or_err =
GetMostSpecializedValue().GetObjectDescription();
if (!object_desc_or_err) {
- *m_stream << "warning: `po` was unsuccessful, running `p` instead";
+ *m_stream << "warning: `po` was unsuccessful, running `p` instead\n";
LLDB_LOG_ERROR(GetLog(LLDBLog::Expressions),
object_desc_or_err.takeError(),
"Object description fallback due to error: {0}");
diff --git a/lldb/test/API/lang/objc/failing-description/TestObjCFailingDescription.py b/lldb/test/API/lang/objc/failing-description/TestObjCFailingDescription.py
index 134c40c6d070e..2c32901452fb9 100644
--- a/lldb/test/API/lang/objc/failing-description/TestObjCFailingDescription.py
+++ b/lldb/test/API/lang/objc/failing-description/TestObjCFailingDescription.py
@@ -14,7 +14,7 @@ def test(self):
self.expect(
"expr -O -- bad",
- substrs=["`po` was unsuccessful, running `p` instead", "(Bad *) 0x"],
+ substrs=["`po` was unsuccessful, running `p` instead\n", "(Bad *) 0x"],
)
self.filecheck(
f"platform shell cat {log}", __file__, f"-check-prefix=CHECK-EXPR"
@@ -23,7 +23,7 @@ def test(self):
self.expect(
"dwim-print -O -- bad",
- substrs=["`po` was unsuccessful, running `p` instead", "_lookHere = NO"],
+ substrs=["`po` was unsuccessful, running `p` instead\n", "_lookHere = NO"],
)
self.filecheck(
f"platform shell cat {log}", __file__, f"-check-prefix=CHECK-DWIM-PRINT"
diff --git a/lldb/test/API/lang/objc/struct-description/TestObjCStructDescription.py b/lldb/test/API/lang/objc/struct-description/TestObjCStructDescription.py
index b03797fdef6e3..b6dc7637b45eb 100644
--- a/lldb/test/API/lang/objc/struct-description/TestObjCStructDescription.py
+++ b/lldb/test/API/lang/objc/struct-description/TestObjCStructDescription.py
@@ -15,7 +15,7 @@ def test(self):
self.expect(
"vo pair",
substrs=[
- "warning: `po` was unsuccessful, running `p` instead",
+ "warning: `po` was unsuccessful, running `p` instead\n",
"(Pair) pair = (f = 2, e = 3)",
],
)
@@ -25,7 +25,7 @@ def test(self):
self.expect(
"expr -O -- pair",
substrs=[
- "warning: `po` was unsuccessful, running `p` instead",
+ "warning: `po` was unsuccessful, running `p` instead\n",
"(Pair) (f = 2, e = 3)",
],
)
``````````
</details>
https://github.com/llvm/llvm-project/pull/176257
More information about the lldb-commits
mailing list