diff options
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp b/lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp index 376c41bc002..a68f7d38def 100644 --- a/lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp +++ b/lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp @@ -90,6 +90,10 @@ bool lldb_private::InferiorCallMmap(Process *process, addr_t &allocated_addr, if (call_plan_sp) { StreamFile error_strm; + // This plan is a utility plan, so set it to discard itself when done. + call_plan_sp->SetIsMasterPlan (true); + call_plan_sp->SetOkayToDiscard(true); + StackFrame *frame = thread->GetStackFrameAtIndex (0).get(); if (frame) { @@ -164,6 +168,10 @@ bool lldb_private::InferiorCallMunmap(Process *process, addr_t addr, if (call_plan_sp) { StreamFile error_strm; + // This plan is a utility plan, so set it to discard itself when done. + call_plan_sp->SetIsMasterPlan (true); + call_plan_sp->SetOkayToDiscard(true); + StackFrame *frame = thread->GetStackFrameAtIndex (0).get(); if (frame) { |