[Lldb-commits] [lldb] r232815 - Add missing cases to NativeProcessLinux LogThreadStopInfo
Pavel Labath
labath at google.com
Fri Mar 20 07:45:13 PDT 2015
Author: labath
Date: Fri Mar 20 09:45:13 2015
New Revision: 232815
URL: http://llvm.org/viewvc/llvm-project?rev=232815&view=rev
Log:
Add missing cases to NativeProcessLinux LogThreadStopInfo
Test Plan: No tests, this is just a debug logging function.
Reviewers: tberghammer
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D8453
Modified:
lldb/trunk/source/Plugins/Process/Linux/NativeThreadLinux.cpp
Modified: lldb/trunk/source/Plugins/Process/Linux/NativeThreadLinux.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/NativeThreadLinux.cpp?rev=232815&r1=232814&r2=232815&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/NativeThreadLinux.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Linux/NativeThreadLinux.cpp Fri Mar 20 09:45:13 2015
@@ -44,6 +44,18 @@ namespace
{
switch (stop_info.reason)
{
+ case eStopReasonNone:
+ log.Printf ("%s: %s no stop reason", __FUNCTION__, header);
+ return;
+ case eStopReasonTrace:
+ log.Printf ("%s: %s trace, stopping signal 0x%" PRIx32, __FUNCTION__, header, stop_info.details.signal.signo);
+ return;
+ case eStopReasonBreakpoint:
+ log.Printf ("%s: %s breakpoint, stopping signal 0x%" PRIx32, __FUNCTION__, header, stop_info.details.signal.signo);
+ return;
+ case eStopReasonWatchpoint:
+ log.Printf ("%s: %s watchpoint, stopping signal 0x%" PRIx32, __FUNCTION__, header, stop_info.details.signal.signo);
+ return;
case eStopReasonSignal:
log.Printf ("%s: %s signal 0x%02" PRIx32, __FUNCTION__, header, stop_info.details.signal.signo);
return;
@@ -53,6 +65,15 @@ namespace
case eStopReasonExec:
log.Printf ("%s: %s exec, stopping signal 0x%" PRIx32, __FUNCTION__, header, stop_info.details.signal.signo);
return;
+ case eStopReasonPlanComplete:
+ log.Printf ("%s: %s plan complete", __FUNCTION__, header);
+ return;
+ case eStopReasonThreadExiting:
+ log.Printf ("%s: %s thread exiting", __FUNCTION__, header);
+ return;
+ case eStopReasonInstrumentation:
+ log.Printf ("%s: %s instrumentation", __FUNCTION__, header);
+ return;
default:
log.Printf ("%s: %s invalid stop reason %" PRIu32, __FUNCTION__, header, static_cast<uint32_t> (stop_info.reason));
}
More information about the lldb-commits
mailing list