Resubmit r354706 with a fix for process launch.
authorJim Ingham <jingham@apple.com>
Fri, 1 Mar 2019 18:13:38 +0000 (18:13 +0000)
committerJim Ingham <jingham@apple.com>
Fri, 1 Mar 2019 18:13:38 +0000 (18:13 +0000)
commit3139fc976795c1cb29c46b4c5cb7c571e619a73c
treecef747669300658cba860bea52640587bb13c455
parent21f7c35df1de6c2b16aa663e26cb4d09099118a2
Resubmit r354706 with a fix for process launch.

When the debugger is run in sync mode, you need to
be able to tell whether a hijacked resume is for some
special purpose (like waiting for the SIGSTOP on attach)
or just to perform a synchronous resume.  Target::Launch was doing
that wrong, and that caused stop-hooks on process launch
in source files to behave incorrectly.

<rdar://problem/48115661>

Differential Revision: https://reviews.llvm.org/D58727

llvm-svn: 355213
12 files changed:
lldb/include/lldb/Target/Process.h
lldb/include/lldb/Target/Target.h
lldb/lit/ExecControl/StopHook/Inputs/stop-hook-2.lldbinit
lldb/lit/ExecControl/StopHook/Inputs/stop-hook-3.lldbinit
lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-1.lldbinit
lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-2.lldbinit
lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads.cpp
lldb/lit/ExecControl/StopHook/stop-hook-threads.test
lldb/lldb.xcodeproj/xcshareddata/xcschemes/lldb-gtest.xcscheme
lldb/source/Commands/CommandObjectTarget.cpp
lldb/source/Target/Process.cpp
lldb/source/Target/Target.cpp