[Lldb-commits] [PATCH] D132397: [LLDB] Clean up after command fails
Zequan Wu via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 22 10:30:22 PDT 2022
zequanwu created this revision.
zequanwu added a reviewer: JDevlieghere.
Herald added a project: All.
zequanwu requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
`CommandObject::CheckRequirements()` requires m_exe_ctx being cleaned up.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132397
Files:
lldb/source/Interpreter/CommandObject.cpp
Index: lldb/source/Interpreter/CommandObject.cpp
===================================================================
--- lldb/source/Interpreter/CommandObject.cpp
+++ lldb/source/Interpreter/CommandObject.cpp
@@ -741,6 +741,7 @@
if (cmd_args.GetArgumentCount() != 0 && m_arguments.empty()) {
result.AppendErrorWithFormatv("'{0}' doesn't take any arguments.",
GetCommandName());
+ Cleanup();
return false;
}
handled = DoExecute(cmd_args, result);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132397.454560.patch
Type: text/x-patch
Size: 545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220822/c334681b/attachment.bin>
More information about the lldb-commits
mailing list