LLDB mainline
|
#include <SBCommandInterpreter.h>
Public Member Functions | |
SBCommand () | |
operator bool () const | |
bool | IsValid () |
const char * | GetName () |
const char * | GetHelp () |
const char * | GetHelpLong () |
void | SetHelp (const char *) |
void | SetHelpLong (const char *) |
uint32_t | GetFlags () |
void | SetFlags (uint32_t flags) |
lldb::SBCommand | AddMultiwordCommand (const char *name, const char *help=nullptr) |
lldb::SBCommand | AddCommand (const char *name, lldb::SBCommandPluginInterface *impl, const char *help=nullptr) |
Add a new subcommand to the lldb::SBCommand. | |
lldb::SBCommand | AddCommand (const char *name, lldb::SBCommandPluginInterface *impl, const char *help, const char *syntax) |
Add a new subcommand to the lldb::SBCommand. | |
lldb::SBCommand | AddCommand (const char *name, lldb::SBCommandPluginInterface *impl, const char *help, const char *syntax, const char *auto_repeat_command) |
Add a new subcommand to the lldb::SBCommand. | |
Private Member Functions | |
SBCommand (lldb::CommandObjectSP cmd_sp) | |
Private Attributes | |
lldb::CommandObjectSP | m_opaque_sp |
Friends | |
class | SBDebugger |
class | SBCommandInterpreter |
Definition at line 362 of file SBCommandInterpreter.h.
SBCommand::SBCommand | ( | ) |
Definition at line 635 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA.
|
private |
Definition at line 637 of file SBCommandInterpreter.cpp.
lldb::SBCommand SBCommand::AddCommand | ( | const char * | name, |
lldb::SBCommandPluginInterface * | impl, | ||
const char * | help, | ||
const char * | syntax | ||
) |
Add a new subcommand to the lldb::SBCommand.
The new command won't support autorepeat. If you need this functionality, use the override of this function that accepts the auto_repeat_command parameter.
[in] | name | The name of the command. |
[in] | impl | The handler of this command. |
[in] | help | The general description to show as part of the help message of this command. |
[in] | syntax | The syntax to show as part of the help message of this command. This could include a description of the different arguments and flags this command accepts. |
Definition at line 708 of file SBCommandInterpreter.cpp.
References AddCommand(), and LLDB_INSTRUMENT_VA.
lldb::SBCommand SBCommand::AddCommand | ( | const char * | name, |
lldb::SBCommandPluginInterface * | impl, | ||
const char * | help, | ||
const char * | syntax, | ||
const char * | auto_repeat_command | ||
) |
Add a new subcommand to the lldb::SBCommand.
The new command won't support autorepeat. If you need this functionality, use the override of this function that accepts the auto_repeat_command parameter.
[in] | name | The name of the command. |
[in] | impl | The handler of this command. |
[in] | help | The general description to show as part of the help message of this command. |
[in] | syntax | The syntax to show as part of the help message of this command. This could include a description of the different arguments and flags this command accepts. |
[in] | auto_repeat_command | Autorepeating is triggered when the user presses Enter successively after executing a command. If nullptr is provided, the previous exact command will be repeated. If "" is provided, autorepeating is disabled. Otherwise, the provided string is used as a repeat command. |
Definition at line 715 of file SBCommandInterpreter.cpp.
References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
lldb::SBCommand SBCommand::AddCommand | ( | const char * | name, |
lldb::SBCommandPluginInterface * | impl, | ||
const char * | help = nullptr |
||
) |
Add a new subcommand to the lldb::SBCommand.
The new command won't support autorepeat. If you need this functionality, use the override of this function that accepts the auto_repeat parameter.
[in] | name | The name of the command. |
[in] | impl | The handler of this command. |
[in] | help | The general description to show as part of the help message of this command. |
Definition at line 700 of file SBCommandInterpreter.cpp.
References AddCommand(), and LLDB_INSTRUMENT_VA.
Referenced by AddCommand().
lldb::SBCommand SBCommand::AddMultiwordCommand | ( | const char * | name, |
const char * | help = nullptr |
||
) |
Definition at line 683 of file SBCommandInterpreter.cpp.
References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb_private::CommandObjectMultiword::SetRemovable().
uint32_t SBCommand::GetFlags | ( | ) |
Definition at line 734 of file SBCommandInterpreter.cpp.
References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
const char * SBCommand::GetHelp | ( | ) |
Definition at line 655 of file SBCommandInterpreter.cpp.
References lldb_private::ConstString::AsCString(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
const char * SBCommand::GetHelpLong | ( | ) |
Definition at line 662 of file SBCommandInterpreter.cpp.
References lldb_private::ConstString::AsCString(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
const char * SBCommand::GetName | ( | ) |
Definition at line 649 of file SBCommandInterpreter.cpp.
References lldb_private::ConstString::AsCString(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBCommand::IsValid | ( | ) |
Definition at line 639 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by AddCommand(), AddMultiwordCommand(), GetFlags(), GetHelp(), GetHelpLong(), GetName(), SetFlags(), SetHelp(), and SetHelpLong().
|
explicit |
Definition at line 643 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA.
void SBCommand::SetFlags | ( | uint32_t | flags | ) |
Definition at line 740 of file SBCommandInterpreter.cpp.
References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBCommand::SetHelp | ( | const char * | help | ) |
Definition at line 669 of file SBCommandInterpreter.cpp.
References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBCommand::SetHelpLong | ( | const char * | help | ) |
Definition at line 676 of file SBCommandInterpreter.cpp.
References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
|
friend |
Definition at line 473 of file SBCommandInterpreter.h.
|
friend |
Definition at line 472 of file SBCommandInterpreter.h.
|
private |
Definition at line 477 of file SBCommandInterpreter.h.
Referenced by AddCommand(), AddMultiwordCommand(), GetFlags(), GetHelp(), GetHelpLong(), GetName(), SetFlags(), SetHelp(), and SetHelpLong().