[Lldb-commits] [lldb] r202423 - Improve logging a bit by printing the exception or signal type description.

Greg Clayton gclayton at apple.com
Thu Feb 27 11:35:13 PST 2014


Author: gclayton
Date: Thu Feb 27 13:35:12 2014
New Revision: 202423

URL: http://llvm.org/viewvc/llvm-project?rev=202423&view=rev
Log:
Improve logging a bit by printing the exception or signal type description.


Modified:
    lldb/trunk/source/Target/ThreadPlanBase.cpp

Modified: lldb/trunk/source/Target/ThreadPlanBase.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/ThreadPlanBase.cpp?rev=202423&r1=202422&r2=202423&view=diff
==============================================================================
--- lldb/trunk/source/Target/ThreadPlanBase.cpp (original)
+++ lldb/trunk/source/Target/ThreadPlanBase.cpp Thu Feb 27 13:35:12 2014
@@ -151,7 +151,7 @@ ThreadPlanBase::ShouldStop (Event *event
             // If we crashed, discard thread plans and stop.  Don't force the discard, however,
             // since on rerun the target may clean up this exception and continue normally from there.
                 if (log)
-                    log->Printf("Base plan discarding thread plans for thread tid = 0x%4.4" PRIx64 " (exception.)", m_thread.GetID());
+                    log->Printf("Base plan discarding thread plans for thread tid = 0x%4.4" PRIx64 " (exception: %s)", m_thread.GetID(), stop_info_sp->GetDescription());
             m_thread.DiscardThreadPlans(false);
             return true;
 
@@ -168,7 +168,7 @@ ThreadPlanBase::ShouldStop (Event *event
             if (stop_info_sp->ShouldStop(event_ptr))
             {
                 if (log)
-                    log->Printf("Base plan discarding thread plans for thread tid = 0x%4.4" PRIx64 " (signal.)", m_thread.GetID());
+                    log->Printf("Base plan discarding thread plans for thread tid = 0x%4.4" PRIx64 " (signal: %s)", m_thread.GetID(), stop_info_sp->GetDescription());
                 m_thread.DiscardThreadPlans(false);
                 return true;
             }





More information about the lldb-commits mailing list