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.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@112221 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/StackFrameList.cpp b/source/Target/StackFrameList.cpp
index e8a436f..b82e756 100644
--- a/source/Target/StackFrameList.cpp
+++ b/source/Target/StackFrameList.cpp
@@ -33,7 +33,7 @@
m_mutex (Mutex::eMutexTypeRecursive),
m_unwind_frames (),
m_inline_frames (),
- m_current_frame_idx (0)
+ m_selected_frame_idx (0)
{
}
@@ -306,15 +306,15 @@
}
uint32_t
-StackFrameList::GetCurrentFrameIndex () const
+StackFrameList::GetSelectedFrameIndex () const
{
Mutex::Locker locker (m_mutex);
- return m_current_frame_idx;
+ return m_selected_frame_idx;
}
uint32_t
-StackFrameList::SetCurrentFrame (lldb_private::StackFrame *frame)
+StackFrameList::SetSelectedFrame (lldb_private::StackFrame *frame)
{
Mutex::Locker locker (m_mutex);
const_iterator pos;
@@ -324,20 +324,20 @@
{
if (pos->get() == frame)
{
- m_current_frame_idx = std::distance (begin, pos);
- return m_current_frame_idx;
+ m_selected_frame_idx = std::distance (begin, pos);
+ return m_selected_frame_idx;
}
}
- m_current_frame_idx = 0;
- return m_current_frame_idx;
+ m_selected_frame_idx = 0;
+ return m_selected_frame_idx;
}
// Mark a stack frame as the current frame using the frame index
void
-StackFrameList::SetCurrentFrameByIndex (uint32_t idx)
+StackFrameList::SetSelectedFrameByIndex (uint32_t idx)
{
Mutex::Locker locker (m_mutex);
- m_current_frame_idx = idx;
+ m_selected_frame_idx = idx;
}
// The thread has been run, reset the number stack frames to zero so we can