diff options
Diffstat (limited to 'include/lldb/Interpreter/CommandObject.h')
-rw-r--r-- | include/lldb/Interpreter/CommandObject.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/lldb/Interpreter/CommandObject.h b/include/lldb/Interpreter/CommandObject.h index 7bdf55a393d7..bace3264dafa 100644 --- a/include/lldb/Interpreter/CommandObject.h +++ b/include/lldb/Interpreter/CommandObject.h @@ -525,6 +525,11 @@ protected: return "invalid frame, no registers"; } + // This is for use in the command interpreter, when you either want the selected target, or if no target + // is present you want to prime the dummy target with entities that will be copied over to new targets. + Target *GetSelectedOrDummyTarget(bool prefer_dummy = false); + Target *GetDummyTarget(); + //------------------------------------------------------------------ /// Check the command to make sure anything required by this /// command is available. @@ -605,7 +610,7 @@ public: virtual bool Execute (const char *args_string, CommandReturnObject &result); - + protected: virtual bool DoExecute (const char *command, CommandReturnObject &result) = 0; |