10 #ifndef LLDB_SBCommandInterpreter_h_
11 #define LLDB_SBCommandInterpreter_h_
32 bool GetStopOnContinue()
const;
34 void SetStopOnContinue(
bool);
36 bool GetStopOnError()
const;
38 void SetStopOnError(
bool);
40 bool GetStopOnCrash()
const;
42 void SetStopOnCrash(
bool);
44 bool GetEchoCommands()
const;
46 void SetEchoCommands(
bool);
48 bool GetPrintResults()
const;
50 void SetPrintResults(
bool);
52 bool GetAddToHistory()
const;
54 void SetAddToHistory(
bool);
57 lldb_private::CommandInterpreterRunOptions *
get()
const;
59 lldb_private::CommandInterpreterRunOptions &ref()
const;
62 mutable std::unique_ptr<lldb_private::CommandInterpreterRunOptions>
119 const char *help,
const char *syntax);
128 bool add_to_history =
false);
133 bool add_to_history =
false);
161 const char *last_char,
int match_start_point,
165 int match_start_point,
int max_return_elements,
172 lldb::CommandOverrideCallback callback,
176 lldb_private::CommandInterpreter *interpreter_ptr =
218 lldb_private::CommandInterpreter &
ref();
220 lldb_private::CommandInterpreter *
get();
222 void reset(lldb_private::CommandInterpreter *);
227 static void InitializeSWIG();
229 lldb_private::CommandInterpreter *m_opaque_ptr;
248 const char *GetName();
250 const char *GetHelp();
252 const char *GetHelpLong();
254 void SetHelp(
const char *);
256 void SetHelpLong(
const char *);
260 void SetFlags(uint32_t flags);
263 const char *help =
nullptr);
267 const char *help =
nullptr);
271 const char *help,
const char *syntax);
279 lldb::CommandObjectSP m_opaque_sp;
284 #endif // LLDB_SBCommandInterpreter_h_
static bool EventIsCommandInterpreterEvent(const lldb::SBEvent &event)
lldb::SBProcess GetProcess()
static const char * GetArgumentDescriptionAsCString(const lldb::CommandArgumentType arg_type)
bool SetCommandOverrideCallback(const char *command_name, lldb::CommandOverrideCallback callback, void *baton)
bool AliasExists(const char *cmd)
SBCommandInterpreter(const lldb::SBCommandInterpreter &rhs)
static const char * GetBroadcasterClass()
bool CommandExists(const char *cmd)
lldb::SBCommand AddCommand(const char *name, lldb::SBCommandPluginInterface *impl, const char *help)
lldb::ReturnStatus HandleCommand(const char *command_line, lldb::SBCommandReturnObject &result, bool add_to_history=false)
class LLDB_API SBCommandInterpreterRunOptions
void HandleCommandsFromFile(lldb::SBFileSpec &file, lldb::SBExecutionContext &override_context, lldb::SBCommandInterpreterRunOptions &options, lldb::SBCommandReturnObject result)
int HandleCompletion(const char *current_line, const char *cursor, const char *last_char, int match_start_point, int max_return_elements, lldb::SBStringList &matches)
void ResolveCommand(const char *command_line, SBCommandReturnObject &result)
void SetPromptOnQuit(bool b)
lldb::SBDebugger GetDebugger()
const char * GetIOHandlerControlSequence(char ch)
virtual bool DoExecute(lldb::SBDebugger, char **, lldb::SBCommandReturnObject &)
void SourceInitFileInHomeDirectory(lldb::SBCommandReturnObject &result)
lldb::SBCommand AddMultiwordCommand(const char *name, const char *help)
static const char * GetArgumentTypeAsCString(const lldb::CommandArgumentType arg_type)
void SourceInitFileInCurrentWorkingDirectory(lldb::SBCommandReturnObject &result)
void reset(lldb_private::CommandInterpreter *)
lldb::SBBroadcaster GetBroadcaster()
lldb_private::CommandInterpreter & ref()
const lldb::SBCommandInterpreter & operator=(const lldb::SBCommandInterpreter &rhs)