Fix Linux bug that leaves lldb in invalid state after expression evaluation times...
authorDaniel Malea <daniel.malea@intel.com>
Fri, 23 Nov 2012 18:09:58 +0000 (18:09 +0000)
committerDaniel Malea <daniel.malea@intel.com>
Fri, 23 Nov 2012 18:09:58 +0000 (18:09 +0000)
commita35970a6f67369691d3fd96eb47a3cff5d7ef0a4
tree52154a4e7df8fdb97d6b6c0fb3599265b52df334
parentb3b60570e31e2e4191d6cb310dd9330651c40dce
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
lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp
lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h
lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp
lldb/source/Plugins/Process/Linux/ProcessMonitor.h