Change "Current" as in GetCurrentThread, GetCurrentStackFrame, etc, to "Selected" i.e. GetSelectedThread. Selected makes more sense, since these are set by some user action (a selection). I didn't change "CurrentProcess" since this is always controlled by the target, and a given target can only have one process, so it really can't be selected.
llvm-svn: 112221
diff --git a/lldb/source/API/SBProcess.cpp b/lldb/source/API/SBProcess.cpp
index 7db5591..b3b083e 100644
--- a/lldb/source/API/SBProcess.cpp
+++ b/lldb/source/API/SBProcess.cpp
@@ -97,11 +97,11 @@
}
SBThread
-SBProcess::GetCurrentThread () const
+SBProcess::GetSelectedThread () const
{
SBThread sb_thread;
if (m_opaque_sp)
- sb_thread.SetThread (m_opaque_sp->GetThreadList().GetCurrentThread());
+ sb_thread.SetThread (m_opaque_sp->GetThreadList().GetSelectedThread());
return sb_thread;
}
@@ -152,7 +152,7 @@
}
void
-SBProcess::ReportCurrentState (const SBEvent &event, FILE *out) const
+SBProcess::ReportEventState (const SBEvent &event, FILE *out) const
{
if (out == NULL)
return;
@@ -173,7 +173,7 @@
}
void
-SBProcess::AppendCurrentStateReport (const SBEvent &event, SBCommandReturnObject &result)
+SBProcess::AppendEventStateReport (const SBEvent &event, SBCommandReturnObject &result)
{
if (m_opaque_sp != NULL)
{
@@ -190,18 +190,18 @@
}
bool
-SBProcess::SetCurrentThread (const SBThread &thread)
+SBProcess::SetSelectedThread (const SBThread &thread)
{
if (m_opaque_sp != NULL)
- return m_opaque_sp->GetThreadList().SetCurrentThreadByID (thread.GetThreadID());
+ return m_opaque_sp->GetThreadList().SetSelectedThreadByID (thread.GetThreadID());
return false;
}
bool
-SBProcess::SetCurrentThreadByID (uint32_t tid)
+SBProcess::SetSelectedThreadByID (uint32_t tid)
{
if (m_opaque_sp != NULL)
- return m_opaque_sp->GetThreadList().SetCurrentThreadByID (tid);
+ return m_opaque_sp->GetThreadList().SetSelectedThreadByID (tid);
return false;
}
@@ -274,7 +274,7 @@
{
state = m_opaque_sp->WaitForStateChangedEvents (NULL, event_sp);
SBEvent event (event_sp);
- AppendCurrentStateReport (event, result);
+ AppendEventStateReport (event, result);
state_changed = true;
}
}