[Lldb-commits] [lldb] r125081 - /lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Jim Ingham jingham at apple.com
Mon Feb 7 21:19:01 PST 2011


Author: jingham
Date: Mon Feb  7 23:19:01 2011
New Revision: 125081

URL: http://llvm.org/viewvc/llvm-project?rev=125081&view=rev
Log:
Add _pthread_wqthread to the list of thread stop points, and change the logging a bit.

Modified:
    lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp?rev=125081&r1=125080&r2=125081&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp Mon Feb  7 23:19:01 2011
@@ -2405,6 +2405,7 @@
     static const char *bp_names[] =
     {
         "start_wqthread",
+        "_pthread_wqthread",
         "_pthread_start",
         NULL
     };
@@ -2451,18 +2452,18 @@
 bool
 ProcessGDBRemote::StopNoticingNewThreads()
 {   
+    LogSP log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_STEP));
+    if (log)
+        log->Printf ("Disabling new thread notification breakpoint.");
     size_t num_bps = m_thread_observation_bps.size();
     if (num_bps != 0)
     {
         for (int i = 0; i < num_bps; i++)
         {
-            LogSP log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_STEP));
             
             lldb::BreakpointSP break_sp = m_target.GetBreakpointByID(m_thread_observation_bps[i]);
             if (break_sp)
             {
-                if (log)
-                    log->Printf ("Disabling new thread notification breakpoint.");
                 break_sp->SetEnabled(false);
             }
         }





More information about the lldb-commits mailing list