aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandObject.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2014-11-22 01:42:44 +0000
committerJim Ingham <jingham@apple.com>2014-11-22 01:42:44 +0000
commit893c932acf365b99298de2ac6017454af961fb84 (patch)
treea32cbc3f70e1e1c93f21c6b639bf2e419d002da0 /lldb/source/Interpreter/CommandObject.cpp
parent0f17c5570d2541a90cb963e740cd20b19adcbc67 (diff)
downloadllvm-893c932acf365b99298de2ac6017454af961fb84.zip
llvm-893c932acf365b99298de2ac6017454af961fb84.tar.gz
llvm-893c932acf365b99298de2ac6017454af961fb84.tar.bz2
This is the first step of making lldb able to create target-specific things
(e.g. breakpoints, stop-hooks) before we have any targets - for instance in your ~/.lldbinit file. These will then get copied over to any new targets that get created. So far, you can only make stop-hooks. Breakpoints will have to learn to move themselves from target to target for us to get them from no-target to new-target. We should also make a command & SB API way to prime this ur-target. llvm-svn: 222600
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index f1a4609..1ee45a6 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -1018,6 +1018,18 @@ CommandObject::GetArgumentDescriptionAsCString (const lldb::CommandArgumentType
return nullptr;
}
+Target *
+CommandObject::GetDummyTarget()
+{
+ return m_interpreter.GetDebugger().GetDummyTarget();
+}
+
+Target *
+CommandObject::GetSelectedOrDummyTarget()
+{
+ return m_interpreter.GetDebugger().GetSelectedOrDummyTarget();
+}
+
bool
CommandObjectParsed::Execute (const char *args_string, CommandReturnObject &result)
{