diff options
author | Pavel Labath <labath@google.com> | 2015-07-23 09:09:29 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2015-07-23 09:09:29 +0000 |
commit | 05569f679a132d146252f31810409d176438a9ac (patch) | |
tree | a162d23f81544c784727aa5ac9274302191e2832 /lldb/source/Plugins/Process/Linux | |
parent | 5a95b0a043fda62f8ee2cbf8e09e61a7729a9af2 (diff) | |
download | bcm5719-llvm-05569f679a132d146252f31810409d176438a9ac.tar.gz bcm5719-llvm-05569f679a132d146252f31810409d176438a9ac.zip |
Add jstopinfo support to llgs
Summary:
This adds support for jstopinfo field of stop-reply packets. This field enables us to avoid
querying full thread stop data on most stops (see r242593 for more details).
Reviewers: ovyalov, clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11415
llvm-svn: 242997
Diffstat (limited to 'lldb/source/Plugins/Process/Linux')
-rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | 2 | ||||
-rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp | 6 | ||||
-rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeThreadLinux.h | 5 |
3 files changed, 5 insertions, 8 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp index 2eff354a1ae..ec81727ea61 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp @@ -1492,7 +1492,7 @@ NativeProcessLinux::MonitorSignal(const siginfo_t *info, lldb::pid_t pid, bool e if (m_pending_notification_up && m_pending_notification_up->triggering_tid == pid) linux_thread_sp->SetStoppedBySignal(SIGSTOP, info); else - linux_thread_sp->SetStoppedBySignal(0); + linux_thread_sp->SetStoppedWithNoReason(); SetCurrentThreadID (thread_sp->GetID ()); ThreadDidStop (thread_sp->GetID (), true); diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp index 8950702c532..7ce95f0087f 100644 --- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp @@ -362,14 +362,14 @@ NativeThreadLinux::SetStoppedByTrace () } void -NativeThreadLinux::SetSuspended () +NativeThreadLinux::SetStoppedWithNoReason () { - const StateType new_state = StateType::eStateSuspended; + const StateType new_state = StateType::eStateStopped; MaybeLogStateChange (new_state); m_state = new_state; - // FIXME what makes sense here? Do we need a suspended StopReason? m_stop_info.reason = StopReason::eStopReasonNone; + m_stop_info.details.signal.signo = 0; } void diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h index 289387bad72..203e082b2e1 100644 --- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h +++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h @@ -87,10 +87,7 @@ namespace process_linux { SetStoppedByTrace (); void - SetCrashedWithException (const siginfo_t& info); - - void - SetSuspended (); + SetStoppedWithNoReason (); void SetExited (); |