diff options
author | Todd Fiala <todd.fiala@gmail.com> | 2014-09-11 23:29:14 +0000 |
---|---|---|
committer | Todd Fiala <todd.fiala@gmail.com> | 2014-09-11 23:29:14 +0000 |
commit | 511e5cdce4020e221d3a8609492004e908ccfc1a (patch) | |
tree | 3eb6c795c832cc84797dac0c63a87955458e97d4 /lldb/source/Plugins/Process/Linux/NativeThreadLinux.h | |
parent | 3d7260e7b21b6630ac42e1838c582a84c57e8a95 (diff) | |
download | bcm5719-llvm-511e5cdce4020e221d3a8609492004e908ccfc1a.tar.gz bcm5719-llvm-511e5cdce4020e221d3a8609492004e908ccfc1a.zip |
llgs: fix Ctrl-C inferior interrupt handling to do the right thing.
* Sends a SIGSTOP to the process.
* Fixes busted SIGSTOP handling. Now builds a list of non-stopped
that we wait for the PTRACE group-stop for. When the final must-stop
tid gets its group stop, we propagate the process state change.
Only the signal receiving the notification of the pending SIGSTOP
is marked with the SIGSTOP signal. All the rest, if they weren't
already stopped, are marked as stopped with signal 0.
* Fixes a few broken tests.
* Marks the Linux test I added earlier as expect-pass (no longer XFAIL).
Implements fix for http://llvm.org/bugs/show_bug.cgi?id=20908.
llvm-svn: 217647
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeThreadLinux.h')
-rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeThreadLinux.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h index bed530dbe9f..8a042f22b22 100644 --- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h +++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h @@ -64,6 +64,12 @@ namespace lldb_private void SetStoppedBySignal (uint32_t signo); + /// Return true if the thread is stopped. + /// If stopped by a signal, indicate the signo in the signo argument. + /// Otherwise, return LLDB_INVALID_SIGNAL_NUMBER. + bool + IsStopped (int *signo); + void SetStoppedByExec (); |