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/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp
index 8ceadca..3bbd282 100644
--- a/lldb/source/Commands/CommandObjectBreakpoint.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp
@@ -273,7 +273,7 @@
CommandReturnObject &result
)
{
- Target *target = interpreter.GetDebugger().GetCurrentTarget().get();
+ Target *target = interpreter.GetDebugger().GetSelectedTarget().get();
if (target == NULL)
{
result.AppendError ("Invalid target, set executable file using 'file' command.");
@@ -706,7 +706,7 @@
CommandReturnObject &result
)
{
- Target *target = interpreter.GetDebugger().GetCurrentTarget().get();
+ Target *target = interpreter.GetDebugger().GetSelectedTarget().get();
if (target == NULL)
{
result.AppendError ("Invalid target, set executable file using 'file' command.");
@@ -797,7 +797,7 @@
CommandReturnObject &result
)
{
- Target *target = interpreter.GetDebugger().GetCurrentTarget().get();
+ Target *target = interpreter.GetDebugger().GetSelectedTarget().get();
if (target == NULL)
{
result.AppendError ("Invalid target, set executable file using 'file' command.");
@@ -897,7 +897,7 @@
CommandReturnObject &result
)
{
- Target *target = interpreter.GetDebugger().GetCurrentTarget().get();
+ Target *target = interpreter.GetDebugger().GetSelectedTarget().get();
if (target == NULL)
{
result.AppendError ("Invalid target, set executable file using 'file' command.");
@@ -993,7 +993,7 @@
CommandReturnObject &result
)
{
- Target *target = interpreter.GetDebugger().GetCurrentTarget().get();
+ Target *target = interpreter.GetDebugger().GetSelectedTarget().get();
if (target == NULL)
{
result.AppendError ("Invalid target, set executable file using 'file' command.");
@@ -1240,7 +1240,7 @@
return false;
}
- Target *target = interpreter.GetDebugger().GetCurrentTarget().get();
+ Target *target = interpreter.GetDebugger().GetSelectedTarget().get();
if (target == NULL)
{
result.AppendError ("Invalid target, set executable file using 'file' command.");