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/CommandObjectTarget.cpp | |
parent | 17da935964094e95862546d8373c287914c6272f (diff) | |
download | bcm5719-llvm-2976d00adbfb7c0c5612b86272bdcf1866ad7eab.tar.gz bcm5719-llvm-2976d00adbfb7c0c5612b86272bdcf1866ad7eab.zip |
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/CommandObjectTarget.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectTarget.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp index 3f8581c80fa..3c41464e707 100644 --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -50,7 +50,7 @@ public: Args& command, CommandReturnObject &result) { - Target *target = interpreter.GetDebugger().GetCurrentTarget().get(); + Target *target = interpreter.GetDebugger().GetSelectedTarget().get(); if (target) { uint32_t argc = command.GetArgumentCount(); @@ -113,7 +113,7 @@ public: Args& command, CommandReturnObject &result) { - Target *target = interpreter.GetDebugger().GetCurrentTarget().get(); + Target *target = interpreter.GetDebugger().GetSelectedTarget().get(); if (target) { bool notify = true; @@ -148,7 +148,7 @@ public: Args& command, CommandReturnObject &result) { - Target *target = interpreter.GetDebugger().GetCurrentTarget().get(); + Target *target = interpreter.GetDebugger().GetSelectedTarget().get(); if (target) { uint32_t argc = command.GetArgumentCount(); @@ -231,7 +231,7 @@ public: Args& command, CommandReturnObject &result) { - Target *target = interpreter.GetDebugger().GetCurrentTarget().get(); + Target *target = interpreter.GetDebugger().GetSelectedTarget().get(); if (target) { if (command.GetArgumentCount() != 0) @@ -272,7 +272,7 @@ public: Args& command, CommandReturnObject &result) { - Target *target = interpreter.GetDebugger().GetCurrentTarget().get(); + Target *target = interpreter.GetDebugger().GetSelectedTarget().get(); if (target) { if (command.GetArgumentCount() != 1) @@ -337,8 +337,8 @@ public: // const uint32_t frame_idx = Args::StringToUInt32 (frame_idx_cstr, UINT32_MAX, 0); // if (frame_idx < num_frames) // { -// exe_ctx.thread->SetCurrentFrameByIndex (frame_idx); -// exe_ctx.frame = exe_ctx.thread->GetCurrentFrame ().get(); +// exe_ctx.thread->SetSelectedFrameByIndex (frame_idx); +// exe_ctx.frame = exe_ctx.thread->GetSelectedFrame ().get(); // // if (exe_ctx.frame) // { |