diff options
| author | Jim Ingham <jingham@apple.com> | 2010-08-26 21:32:51 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2010-08-26 21:32:51 +0000 |
| commit | 2976d00adbfb7c0c5612b86272bdcf1866ad7eab (patch) | |
| tree | 0664fe0db5dadf60c083d282320e19d9332e4886 /lldb/source/Commands/CommandObjectProcess.cpp | |
| parent | 17da935964094e95862546d8373c287914c6272f (diff) | |
| download | llvm-2976d00adbfb7c0c5612b86272bdcf1866ad7eab.zip llvm-2976d00adbfb7c0c5612b86272bdcf1866ad7eab.tar.gz llvm-2976d00adbfb7c0c5612b86272bdcf1866ad7eab.tar.bz2 | |
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
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
| -rw-r--r-- | lldb/source/Commands/CommandObjectProcess.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index 7f4d536..dd2d545 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -124,7 +124,7 @@ public: Args& launch_args, CommandReturnObject &result) { - Target *target = interpreter.GetDebugger().GetCurrentTarget().get(); + Target *target = interpreter.GetDebugger().GetSelectedTarget().get(); bool synchronous_execution = interpreter.GetSynchronous (); // bool launched = false; // bool stopped_after_launch = false; @@ -377,7 +377,7 @@ public: if (process && process->IsAlive()) return true; - Target *target = interpreter.GetDebugger().GetCurrentTarget().get(); + Target *target = interpreter.GetDebugger().GetSelectedTarget().get(); if (target == NULL) { // No target has been set yet, for now do host completion. Otherwise I don't know how we would @@ -436,7 +436,7 @@ public: Args& command, CommandReturnObject &result) { - Target *target = interpreter.GetDebugger().GetCurrentTarget().get(); + Target *target = interpreter.GetDebugger().GetSelectedTarget().get(); Process *process = interpreter.GetDebugger().GetExecutionContext().process; if (process) @@ -470,7 +470,7 @@ public: result.AppendError(error.AsCString("Error creating empty target")); return false; } - interpreter.GetDebugger().GetTargetList().SetCurrentTarget(target); + interpreter.GetDebugger().GetTargetList().SetSelectedTarget(target); } // Record the old executable module, we want to issue a warning if the process of attaching changed the |
