[Lldb-commits] [PATCH] linux: fix SBBreakpoint::GetThreadIndex

Stephen Wilson wilsons at start.ca
Wed Dec 15 12:34:21 PST 2010


    Log using the proper argument and make SBBreakpoint::GetThreadIndex
    return the thread index instead of zero.

diff --git a/source/API/SBBreakpoint.cpp b/source/API/SBBreakpoint.cpp
index f2dccf9..eed986d 100644
--- a/source/API/SBBreakpoint.cpp
+++ b/source/API/SBBreakpoint.cpp
@@ -319,9 +319,9 @@ SBBreakpoint::GetThreadIndex() const
     }
     LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBBreakpoint(%p)::GetThreadIndex () => %u", m_opaque_sp.get(), index);
+        log->Printf ("SBBreakpoint(%p)::GetThreadIndex () => %u", m_opaque_sp.get(), thread_idx);
 
-    return 0;
+    return thread_idx;
 }



More information about the lldb-commits mailing list