[Lldb-commits] [lldb] r199289 - Add a little more logging to the StopInfoBreakpoint::PerformAction.

Jim Ingham jingham at apple.com
Tue Jan 14 19:30:04 PST 2014


Author: jingham
Date: Tue Jan 14 21:30:04 2014
New Revision: 199289

URL: http://llvm.org/viewvc/llvm-project?rev=199289&view=rev
Log:
Add a little more logging to the StopInfoBreakpoint::PerformAction.

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

Modified: lldb/trunk/source/Target/StopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/StopInfo.cpp?rev=199289&r1=199288&r2=199289&view=diff
==============================================================================
--- lldb/trunk/source/Target/StopInfo.cpp (original)
+++ lldb/trunk/source/Target/StopInfo.cpp Tue Jan 14 21:30:04 2014
@@ -419,8 +419,15 @@ protected:
                         // The breakpoint site may have many locations associated with it, not all of them valid for
                         // this thread.  Skip the ones that aren't:
                         if (!bp_loc_sp->ValidForThisThread(thread_sp.get()))
+                        {
+                            if (log)
+                            {
+                                StreamString s;
+                                bp_loc_sp->GetDescription(&s, eDescriptionLevelBrief);
+                                log->Printf ("Breakpoint %s hit on thread 0x%llx but it was not for this thread, continuing.", s.GetData(), thread_sp->GetID());
+                            }
                             continue;
-                                                          
+                        }
                         // First run the condition for the breakpoint.  If that says we should stop, then we'll run
                         // the callback for the breakpoint.  If the callback says we shouldn't stop that will win.                    
                         
@@ -450,6 +457,12 @@ protected:
                             }
                             else
                             {
+                                if (log)
+                                {
+                                    StreamString s;
+                                    bp_loc_sp->GetDescription(&s, eDescriptionLevelBrief);
+                                    log->Printf ("Condition evaluated for breakpoint %s on thread 0x%llx conditon_says_stop: %i.", s.GetData(), thread_sp->GetID(), condition_says_stop);
+                                }
                                 if (!condition_says_stop)
                                     continue;
                             }





More information about the lldb-commits mailing list