diff options
| author | Chaoren Lin <chaorenl@google.com> | 2015-02-03 01:50:54 +0000 |
|---|---|---|
| committer | Chaoren Lin <chaorenl@google.com> | 2015-02-03 01:50:54 +0000 |
| commit | 9d617ba613ea3cbeeac52dd976e7ccf5fff4b752 (patch) | |
| tree | ebf06174c2da605dde9a3515fe539ff42f45e561 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | |
| parent | b8af31d4b60bee8dc4faefad30764cbce219e2a9 (diff) | |
Disabled local-llgs hijacking of state on startup; passed along signo to killed process.
It looks like Shawn's fix addresses what the initial hijacking was trying
to accomplish per conversations with Greg and Jim. The hijacking was
causing several tests to hang (#61, #62, #63, #64, #67, possibly more).
These tests now just fail rather than hang with this modification.
llvm-svn: 227914
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp index da71e15f991f..d6270ecbfc0e 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp @@ -2303,28 +2303,17 @@ NativeProcessLinux::MonitorSIGTRAP(const siginfo_t *info, lldb::pid_t pid) is_main_thread ? "is main thread" : "not main thread"); } - // We'll set the thread to exited later... -// if (thread_sp) -// reinterpret_cast<NativeThreadLinux*> (thread_sp.get ())->SetExited (); -// else -// { -// if (log) -// log->Printf ("NativeProcessLinux::%s() pid %" PRIu64 " failed to retrieve thread for tid %" PRIu64", cannot set thread state", __FUNCTION__, GetID (), pid); -// } - - // FIXME: review if this is the spot, or the follow up, which tells us the real exit code. - // If it's this one, we need to track it or set it here. Setting it here is not really in the - // right time flow though unless we skip the follow up. if (is_main_thread) { SetExitStatus (convert_pid_status_to_exit_type (data), convert_pid_status_to_return_code (data), nullptr, true); } + const int signo = static_cast<int> (data); m_coordinator_up->RequestThreadResume (pid, [=](lldb::tid_t tid_to_resume) { reinterpret_cast<NativeThreadLinux*> (thread_sp.get ())->SetRunning (); - Resume (tid_to_resume, LLDB_INVALID_SIGNAL_NUMBER); + Resume (tid_to_resume, signo); }, CoordinatorErrorHandler); |
