[Lldb-commits] [lldb] r194531 - Change SBThread::GetExtendedBacktrace to
Jason Molenda
jmolenda at apple.com
Tue Nov 12 15:33:32 PST 2013
Author: jmolenda
Date: Tue Nov 12 17:33:32 2013
New Revision: 194531
URL: http://llvm.org/viewvc/llvm-project?rev=194531&view=rev
Log:
Change SBThread::GetExtendedBacktrace to
SBThread::GetExtendedBacktraceThread to make it more clear what is
being returned.
Modified:
lldb/trunk/include/lldb/API/SBThread.h
lldb/trunk/include/lldb/Target/SystemRuntime.h
lldb/trunk/scripts/Python/interface/SBThread.i
lldb/trunk/source/API/SBProcess.cpp
lldb/trunk/source/API/SBThread.cpp
lldb/trunk/source/Commands/CommandObjectThread.cpp
lldb/trunk/source/Target/SystemRuntime.cpp
Modified: lldb/trunk/include/lldb/API/SBThread.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBThread.h?rev=194531&r1=194530&r2=194531&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBThread.h (original)
+++ lldb/trunk/include/lldb/API/SBThread.h Tue Nov 12 17:33:32 2013
@@ -202,7 +202,7 @@ public:
GetStatus (lldb::SBStream &status) const;
SBThread
- GetExtendedBacktrace (const char *type);
+ GetExtendedBacktraceThread (const char *type);
protected:
friend class SBBreakpoint;
Modified: lldb/trunk/include/lldb/Target/SystemRuntime.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Target/SystemRuntime.h?rev=194531&r1=194530&r2=194531&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Target/SystemRuntime.h (original)
+++ lldb/trunk/include/lldb/Target/SystemRuntime.h Tue Nov 12 17:33:32 2013
@@ -158,7 +158,7 @@ public:
/// An empty ThreadSP will be returned if no thread origin is available.
//------------------------------------------------------------------
virtual lldb::ThreadSP
- GetExtendedBacktrace (lldb::ThreadSP thread, ConstString type);
+ GetExtendedBacktraceThread (lldb::ThreadSP thread, ConstString type);
protected:
//------------------------------------------------------------------
Modified: lldb/trunk/scripts/Python/interface/SBThread.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBThread.i?rev=194531&r1=194530&r2=194531&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/interface/SBThread.i (original)
+++ lldb/trunk/scripts/Python/interface/SBThread.i Tue Nov 12 17:33:32 2013
@@ -249,9 +249,9 @@ public:
normal threads -- you cannot step or resume it, for instance -- it is
intended to used primarily for generating a backtrace. You may request
the returned thread's own thread origin in turn.
- ") GetExtendedBacktrace;
+ ") GetExtendedBacktraceThread;
lldb::SBThread
- GetExtendedBacktrace (const char *type);
+ GetExtendedBacktraceThread (const char *type);
%pythoncode %{
class frames_access(object):
Modified: lldb/trunk/source/API/SBProcess.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBProcess.cpp?rev=194531&r1=194530&r2=194531&view=diff
==============================================================================
--- lldb/trunk/source/API/SBProcess.cpp (original)
+++ lldb/trunk/source/API/SBProcess.cpp Tue Nov 12 17:33:32 2013
@@ -1278,7 +1278,7 @@ SBProcess::GetExtendedBacktraceTypeAtInd
if (process_sp && process_sp->GetSystemRuntime())
{
SystemRuntime *runtime = process_sp->GetSystemRuntime();
- std::vector<ConstString> names = runtime->GetExtendedBacktraceTypes();
+ const std::vector<ConstString> &names = runtime->GetExtendedBacktraceTypes();
if (idx < names.size())
{
return names[idx].AsCString();
Modified: lldb/trunk/source/API/SBThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBThread.cpp?rev=194531&r1=194530&r2=194531&view=diff
==============================================================================
--- lldb/trunk/source/API/SBThread.cpp (original)
+++ lldb/trunk/source/API/SBThread.cpp Tue Nov 12 17:33:32 2013
@@ -433,7 +433,6 @@ SBThread::SetThread (const ThreadSP& lld
m_opaque_sp->SetThreadSP (lldb_object_sp);
}
-
lldb::tid_t
SBThread::GetThreadID () const
{
@@ -1283,7 +1282,7 @@ SBThread::GetDescription (SBStream &desc
}
SBThread
-SBThread::GetExtendedBacktrace (const char *type)
+SBThread::GetExtendedBacktraceThread (const char *type)
{
Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
Mutex::Locker api_locker;
@@ -1305,7 +1304,7 @@ SBThread::GetExtendedBacktrace (const ch
SystemRuntime *runtime = process->GetSystemRuntime();
if (runtime)
{
- ThreadSP new_thread_sp (runtime->GetExtendedBacktrace (real_thread, type_const));
+ ThreadSP new_thread_sp (runtime->GetExtendedBacktraceThread (real_thread, type_const));
// Save this in the Process' ExtendedThreadList so a strong pointer retains the
// object.
process->GetExtendedThreadList().AddThread (new_thread_sp);
Modified: lldb/trunk/source/Commands/CommandObjectThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectThread.cpp?rev=194531&r1=194530&r2=194531&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectThread.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectThread.cpp Tue Nov 12 17:33:32 2013
@@ -180,7 +180,7 @@ protected:
const std::vector<ConstString> &types = runtime->GetExtendedBacktraceTypes();
for (auto type : types)
{
- ThreadSP ext_thread_sp = runtime->GetExtendedBacktrace (thread->shared_from_this(), type);
+ ThreadSP ext_thread_sp = runtime->GetExtendedBacktraceThread (thread->shared_from_this(), type);
if (ext_thread_sp && ext_thread_sp->IsValid ())
{
const uint32_t num_frames_with_source = 0;
Modified: lldb/trunk/source/Target/SystemRuntime.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/SystemRuntime.cpp?rev=194531&r1=194530&r2=194531&view=diff
==============================================================================
--- lldb/trunk/source/Target/SystemRuntime.cpp (original)
+++ lldb/trunk/source/Target/SystemRuntime.cpp Tue Nov 12 17:33:32 2013
@@ -67,7 +67,7 @@ SystemRuntime::GetExtendedBacktraceTypes
}
ThreadSP
-SystemRuntime::GetExtendedBacktrace (ThreadSP thread, ConstString type)
+SystemRuntime::GetExtendedBacktraceThread (ThreadSP thread, ConstString type)
{
return ThreadSP();
}
More information about the lldb-commits
mailing list