[Lldb-commits] [PATCH] D154752: runCmd should print the command before running it in case of crashes
Jim Ingham via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 7 19:09:37 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG01e3393b94d1: Split up the runCmd trace printing to print the command before running. (authored by jingham).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154752/new/
https://reviews.llvm.org/D154752
Files:
lldb/packages/Python/lldbsuite/test/lldbtest.py
Index: lldb/packages/Python/lldbsuite/test/lldbtest.py
===================================================================
--- lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -2059,12 +2059,14 @@
running = cmd.startswith("run") or cmd.startswith("process launch")
for i in range(self.maxLaunchCount if running else 1):
- self.ci.HandleCommand(cmd, self.res, inHistory)
-
with recording(self, trace) as sbuf:
print("runCmd:", cmd, file=sbuf)
if not check:
print("check of return status not required", file=sbuf)
+
+ self.ci.HandleCommand(cmd, self.res, inHistory)
+
+ with recording(self, trace) as sbuf:
if self.res.Succeeded():
print("output:", self.res.GetOutput(), file=sbuf)
else:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154752.538309.patch
Type: text/x-patch
Size: 916 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230708/44e8413f/attachment-0001.bin>
More information about the lldb-commits
mailing list