diff options
| author | Daniel Malea <daniel.malea@intel.com> | 2012-11-23 18:09:58 +0000 |
|---|---|---|
| committer | Daniel Malea <daniel.malea@intel.com> | 2012-11-23 18:09:58 +0000 |
| commit | a35970a6f67369691d3fd96eb47a3cff5d7ef0a4 (patch) | |
| tree | 52154a4e7df8fdb97d6b6c0fb3599265b52df334 /lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h | |
| parent | b3b60570e31e2e4191d6cb310dd9330651c40dce (diff) | |
| download | bcm5719-llvm-a35970a6f67369691d3fd96eb47a3cff5d7ef0a4.tar.gz bcm5719-llvm-a35970a6f67369691d3fd96eb47a3cff5d7ef0a4.zip | |
Fix Linux bug that leaves lldb in invalid state after expression evaluation times out.
- Handle EINVAL return code from ptrace(GETSIGINFO, ...): not an error, but 'group-stop' state on Linux
- propagate SIGSTOP to inferior in above case
- this commit resolves the failure in expression_command/timeout testcase
Thanks to Sean Callanan & Matt Kopec for helping debug this problem
llvm-svn: 168523
Diffstat (limited to 'lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h')
| -rw-r--r-- | lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h index 9c630049caf..5530ca3afbb 100644 --- a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h +++ b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h @@ -132,7 +132,7 @@ public: /// Writes a siginfo_t structure corresponding to the given thread ID to the /// memory region pointed to by @p siginfo. bool - GetSignalInfo(lldb::tid_t tid, void *siginfo); + GetSignalInfo(lldb::tid_t tid, void *siginfo, int &errno); /// Writes the raw event message code (vis-a-vis PTRACE_GETEVENTMSG) /// corresponding to the given thread IDto the memory pointed to by @p |

