llvm-project/lldb/source/Plugins/Process
Pavel Labath 05a1f2ac4c [NativeProcessLinux] Support inferiors which change their process group
Summary:
Previously, we wait()ed for events from the inferiors process group. This is resulted in a
failure if the inferior changed its process group in the middle of execution. To avoid this, I
pass -1 to the wait() call. The flag __WNOTHREAD makes sure we don't actually wait for events
from any process, but only the processes(threads) which are our children (or traced by us). Since
this happens on the monitor thread, which is dedicated to monitoring a single inferior, we will
be getting events only from this inferior.

Test Plan: All tests pass on linux. I have added a test to check the new functionality.

Reviewers: chaoren, ovyalov

Subscribers: lldb-commits

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

llvm-svn: 238405
2015-05-28 08:59:21 +00:00
..
FreeBSD Sprinkle some #include <mutex> in files that use std::call_once. 2015-04-03 10:55:00 +00:00
Linux [NativeProcessLinux] Support inferiors which change their process group 2015-05-28 08:59:21 +00:00
MacOSX-Kernel Remove DoAttachToProcessWithId(lldb::pid_t). 2015-05-13 19:44:44 +00:00
POSIX Initial FreeBSD/arm live debugging support 2015-05-13 22:33:12 +00:00
Utility Add real time signals support to FreeBSDSignals 2015-05-27 13:19:46 +00:00
Windows Fix race condition when detaching/killing an inferior. 2015-05-21 19:56:26 +00:00
elf-core This patch adds support aarch64-linux-gnu (SysV) abi in lldb. 2015-04-29 11:52:35 +00:00
gdb-remote Change ProcessGDBRemote last stop packet to a container. 2015-05-27 14:12:34 +00:00
mach-core Don't force a vendor check in ProcessMachCore::CanDebug() -- if this 2015-04-29 22:17:45 +00:00
CMakeLists.txt Create a HostThread abstraction. 2014-09-09 20:54:56 +00:00