Skip to content
Snippets Groups Projects
Commit 327c267a authored by Andrew Kaylor's avatar Andrew Kaylor
Browse files

Set ThreadPlanCallFunction to private in ConstructorSetup. This fixes a...

Set ThreadPlanCallFunction to private in ConstructorSetup.  This fixes a problem on Linux where 'continue' was misfiring after an expression evaluation when stopped at a breakpoint.  The problem was that InferiorCallMmap was not setting its ThreadPlanCallFunction to private and so the completion of that thread plan appeared to be the stop reason and therefore the 'continue' operation failed to step over the breakpoint.  The SetPrivate call is being put in ThreadPlanCallFunction rather than InferiorCallMmap to make the solution more general.

llvm-svn: 169618
parent 131186c1
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,7 @@ ThreadPlanCallFunction::ConstructorSetup (Thread &thread, ...@@ -44,6 +44,7 @@ ThreadPlanCallFunction::ConstructorSetup (Thread &thread,
{ {
SetIsMasterPlan (true); SetIsMasterPlan (true);
SetOkayToDiscard (false); SetOkayToDiscard (false);
SetPrivate (true);
ProcessSP process_sp (thread.GetProcess()); ProcessSP process_sp (thread.GetProcess());
if (!process_sp) if (!process_sp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment