hanchenye-llvm-project/lldb
Pavel Labath 39036ac31d [NativeProcessLinux] Fix handling of SIGSTOP
Summary:
Previously, NPL tried to reinject SIGSTOP into the inferior in an attempt to get the process to
start in the group-stop state. This was:
a) wrong (reinjection should be controlled by "process handle" lldb setting)
b) racy (it should use Resume for transparent resuming instead of RequestResume)
c) broken (llgs crashed on inferior SIGSTOP)

With this change, SIGSTOP is handled just like any other signal delivered to the inferior: we
stop all threads and report signal reception to lldb. SIGSTOP reinjection does not behave the
same way as it would outside the debugger, but simulating this is a hard problem and is not
normally necessary.

Test Plan: I have added a test which verifies we get SIGSTOP reports and we do not crash.

Reviewers: ovyalov, chaoren

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D9852

llvm-svn: 237880
2015-05-21 08:32:18 +00:00
..
cmake Assembly profiler for mips32 2015-05-15 06:53:30 +00:00
docs Doc talks about Platform_RunCommand while we actually use Platform_shell. 2015-05-11 19:48:37 +00:00
examples Add a call to SBDebugger:Destroy() at the end of the self-hosted 2015-04-01 02:09:04 +00:00
include Fix handling of hijacked events in synchronous mode 2015-05-20 10:15:47 +00:00
lib Assembly profiler for mips32 2015-05-15 06:53:30 +00:00
lit Create a check-lldb-unit target to run unit tests. 2015-03-13 20:55:07 +00:00
lldb.xcodeproj Change lldb-mi deployment target to use Xcode project global setting 2015-05-18 19:35:07 +00:00
lldb.xcworkspace Working on getting the OSX build green 2015-05-12 02:20:27 +00:00
resources Bump major vers # in xcode project file from 330 to 340. 2015-03-06 00:45:01 +00:00
scripts Fix a reason of *stopped notifications due to SIGINT/SIGSTOP signals (MI) 2015-05-15 09:29:09 +00:00
source [NativeProcessLinux] Fix handling of SIGSTOP 2015-05-21 08:32:18 +00:00
test [NativeProcessLinux] Fix handling of SIGSTOP 2015-05-21 08:32:18 +00:00
tools Fix handling of hijacked events in synchronous mode 2015-05-20 10:15:47 +00:00
unittests [NativeProcessLinux] fold ThreadStateCoordinator into NPL 2015-05-06 10:46:34 +00:00
utils
www Start to share SWIG interface files between languages. 2015-04-24 00:38:53 +00:00
.arcconfig Update .arcconfig to point to reviews.llvm.org 2014-05-20 21:24:59 +00:00
.clang-format Update build instructions / coding conventions. 2015-03-10 23:22:25 +00:00
.gitignore Fix .gitignore to ignore symlinks. 2015-03-31 00:03:00 +00:00
CMakeLists.txt Use the debugginess of the python interpreter when symlinking _lldb.pyd. 2015-04-22 22:53:18 +00:00
CODE_OWNERS.txt Convert CRLF to LF in CODE_OWNERS.txt 2015-03-23 14:00:54 +00:00
INSTALL.txt Revert "git-svn test commit" 2014-11-18 22:45:59 +00:00
LICENSE.TXT
Makefile Remove the -Wno-unused-function option. We are clean 2014-09-09 07:49:15 +00:00