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/tools/driver/Driver.cpp b/tools/driver/Driver.cpp
index 2add927..fd996bf 100644
--- a/tools/driver/Driver.cpp
+++ b/tools/driver/Driver.cpp
@@ -603,7 +603,7 @@
     //  The process has stuff waiting for stdout; get it and write it out to the appropriate place.
     char stdio_buffer[1024];
     size_t len;
-    while ((len = m_debugger.GetCurrentTarget().GetProcess().GetSTDOUT (stdio_buffer, sizeof (stdio_buffer))) > 0)
+    while ((len = m_debugger.GetSelectedTarget().GetProcess().GetSTDOUT (stdio_buffer, sizeof (stdio_buffer))) > 0)
         m_io_channel_ap->OutWrite (stdio_buffer, len);
 }
 
@@ -613,18 +613,18 @@
     //  The process has stuff waiting for stderr; get it and write it out to the appropriate place.
     char stdio_buffer[1024];
     size_t len;
-    while ((len = m_debugger.GetCurrentTarget().GetProcess().GetSTDERR (stdio_buffer, sizeof (stdio_buffer))) > 0)
+    while ((len = m_debugger.GetSelectedTarget().GetProcess().GetSTDERR (stdio_buffer, sizeof (stdio_buffer))) > 0)
         m_io_channel_ap->ErrWrite (stdio_buffer, len);
 }
 
 void
-Driver::UpdateCurrentThread ()
+Driver::UpdateSelectedThread ()
 {
     using namespace lldb;
-    SBProcess process(m_debugger.GetCurrentTarget().GetProcess());
+    SBProcess process(m_debugger.GetSelectedTarget().GetProcess());
     if (process.IsValid())
     {
-        SBThread curr_thread (process.GetCurrentThread());
+        SBThread curr_thread (process.GetSelectedThread());
         SBThread thread;
         StopReason curr_thread_stop_reason = eStopReasonInvalid;
         curr_thread_stop_reason = curr_thread.GetStopReason();
@@ -664,9 +664,9 @@
                 }
             }
             if (plan_thread.IsValid())
-                process.SetCurrentThread (plan_thread);
+                process.SetSelectedThread (plan_thread);
             else if (other_thread.IsValid())
-                process.SetCurrentThread (other_thread);
+                process.SetSelectedThread (other_thread);
             else
             {
                 if (curr_thread.IsValid())
@@ -675,7 +675,7 @@
                     thread = process.GetThreadAtIndex(0);
 
                 if (thread.IsValid())
-                    process.SetCurrentThread (thread);
+                    process.SetSelectedThread (thread);
             }
         }
     }
@@ -756,7 +756,7 @@
             }
             else
             {
-                UpdateCurrentThread ();
+                UpdateSelectedThread ();
                 m_debugger.HandleCommand("process status");
                 m_io_channel_ap->RefreshPrompt();
             }
@@ -1201,7 +1201,7 @@
                             else
                                 done = HandleIOEvent (event);
                         }
-                        else if (event.BroadcasterMatchesRef (m_debugger.GetCurrentTarget().GetProcess().GetBroadcaster()))
+                        else if (event.BroadcasterMatchesRef (m_debugger.GetSelectedTarget().GetProcess().GetBroadcaster()))
                         {
                             HandleProcessEvent (event);
                         }
@@ -1231,7 +1231,7 @@
                 }
             }
 
-            SBProcess process = m_debugger.GetCurrentTarget().GetProcess();
+            SBProcess process = m_debugger.GetSelectedTarget().GetProcess();
             if (process.IsValid())
                 process.Destroy();
         }