diff options
author | Pavel Labath <labath@google.com> | 2015-05-28 08:59:21 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2015-05-28 08:59:21 +0000 |
commit | 05a1f2ac4c65d83783e084b0942ddbe94347d2d4 (patch) | |
tree | 2c13693475f68b3bb1b1fdcb360c28ec29652662 /llvm/lib/Target/CppBackend/CPPBackend.cpp | |
parent | e1326cadb288012ab1d37ec10d3244dc8b2d6f5b (diff) | |
download | bcm5719-llvm-05a1f2ac4c65d83783e084b0942ddbe94347d2d4.tar.gz bcm5719-llvm-05a1f2ac4c65d83783e084b0942ddbe94347d2d4.zip |
[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
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp')
0 files changed, 0 insertions, 0 deletions