llvm-project/lldb/source/Plugins/Process/Linux
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
..
CMakeLists.txt Move register reading form NativeProcessLinux to NativeRegisterContextLinux* 2015-05-26 11:58:52 +00:00
LinuxThread.cpp Move several plugin to its own namespace 2015-03-31 09:52:22 +00:00
LinuxThread.h Move several plugin to its own namespace 2015-03-31 09:52:22 +00:00
Makefile Fix configure & make build with python disabled 2014-09-09 04:52:37 +00:00
NativeProcessLinux.cpp [NativeProcessLinux] Support inferiors which change their process group 2015-05-28 08:59:21 +00:00
NativeProcessLinux.h Move register reading form NativeProcessLinux to NativeRegisterContextLinux* 2015-05-26 11:58:52 +00:00
NativeRegisterContextLinux.cpp Move register reading form NativeProcessLinux to NativeRegisterContextLinux* 2015-05-26 11:58:52 +00:00
NativeRegisterContextLinux.h Move register reading form NativeProcessLinux to NativeRegisterContextLinux* 2015-05-26 11:58:52 +00:00
NativeRegisterContextLinux_arm.cpp Move register reading form NativeProcessLinux to NativeRegisterContextLinux* 2015-05-26 11:58:52 +00:00
NativeRegisterContextLinux_arm.h Move register reading form NativeProcessLinux to NativeRegisterContextLinux* 2015-05-26 11:58:52 +00:00
NativeRegisterContextLinux_arm64.cpp Move register reading form NativeProcessLinux to NativeRegisterContextLinux* 2015-05-26 11:58:52 +00:00
NativeRegisterContextLinux_arm64.h Move register reading form NativeProcessLinux to NativeRegisterContextLinux* 2015-05-26 11:58:52 +00:00
NativeRegisterContextLinux_mips64.cpp Move register reading form NativeProcessLinux to NativeRegisterContextLinux* 2015-05-26 11:58:52 +00:00
NativeRegisterContextLinux_mips64.h Move register reading form NativeProcessLinux to NativeRegisterContextLinux* 2015-05-26 11:58:52 +00:00
NativeRegisterContextLinux_x86_64.cpp Move register reading form NativeProcessLinux to NativeRegisterContextLinux* 2015-05-26 11:58:52 +00:00
NativeRegisterContextLinux_x86_64.h Move register reading form NativeProcessLinux to NativeRegisterContextLinux* 2015-05-26 11:58:52 +00:00
NativeThreadLinux.cpp Move register reading form NativeProcessLinux to NativeRegisterContextLinux* 2015-05-26 11:58:52 +00:00
NativeThreadLinux.h [NativeProcessLinux] Remove double thread state accounting 2015-05-11 10:03:10 +00:00
ProcFileReader.cpp Move several plugin to its own namespace 2015-03-31 09:52:22 +00:00
ProcFileReader.h Move several plugin to its own namespace 2015-03-31 09:52:22 +00:00
ProcessLinux.cpp Fixed a ton of gcc compile warnings 2015-05-13 00:25:54 +00:00
ProcessLinux.h Fixed a ton of gcc compile warnings 2015-05-13 00:25:54 +00:00
ProcessMonitor.cpp Fixed arm64 build error 2015-05-16 00:26:20 +00:00
ProcessMonitor.h This patch adds support for setting/clearing hardware watchpoints and breakpoints on AArch64 (Arm v8) 64-bit hardware. 2015-05-15 06:29:58 +00:00
Procfs.h Move register reading form NativeProcessLinux to NativeRegisterContextLinux* 2015-05-26 11:58:52 +00:00