summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index 7ad5f7be935..4c406a4f2aa 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -1470,7 +1470,7 @@ public:
protected:
bool
DoExecute (Args& command,
- CommandReturnObject &result)
+ CommandReturnObject &result)
{
Process *process = m_exe_ctx.GetProcessPtr();
if (process == NULL)
@@ -1482,14 +1482,11 @@ protected:
if (command.GetArgumentCount() == 0)
{
- Error error(process->Halt ());
+ bool clear_thread_plans = true;
+ Error error(process->Halt (clear_thread_plans));
if (error.Success())
{
result.SetStatus (eReturnStatusSuccessFinishResult);
-
- // Maybe we should add a "SuspendThreadPlans so we
- // can halt, and keep in place all the current thread plans.
- process->GetThreadList().DiscardThreadPlans();
}
else
{
OpenPOWER on IntegriCloud