LLDB mainline
lldb::SBCommand Class Reference

#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

Detailed Description

Definition at line 364 of file SBCommandInterpreter.h.

Constructor & Destructor Documentation

◆ SBCommand() [1/2]

SBCommand::SBCommand ( )

Definition at line 647 of file SBCommandInterpreter.cpp.

References LLDB_INSTRUMENT_VA.

◆ SBCommand() [2/2]

SBCommand::SBCommand ( lldb::CommandObjectSP cmd_sp)
private

Definition at line 649 of file SBCommandInterpreter.cpp.

References m_opaque_sp.

Member Function Documentation

◆ AddCommand() [1/3]

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.

Parameters
[in]nameThe name of the command.
[in]implThe handler of this command.
[in]helpThe general description to show as part of the help message of this command.
[in]syntaxThe 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.
Returns
A lldb::SBCommand representing the newly created command.

Definition at line 721 of file SBCommandInterpreter.cpp.

References AddCommand(), and LLDB_INSTRUMENT_VA.

◆ AddCommand() [2/3]

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.

Parameters
[in]nameThe name of the command.
[in]implThe handler of this command.
[in]helpThe general description to show as part of the help message of this command.
[in]syntaxThe 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_commandAutorepeating 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.
Returns
A lldb::SBCommand representing the newly created command.

Definition at line 728 of file SBCommandInterpreter.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBCommand.

◆ AddCommand() [3/3]

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.

Parameters
[in]nameThe name of the command.
[in]implThe handler of this command.
[in]helpThe general description to show as part of the help message of this command.
Returns
A lldb::SBCommand representing the newly created command.

Definition at line 713 of file SBCommandInterpreter.cpp.

References AddCommand(), and LLDB_INSTRUMENT_VA.

Referenced by AddCommand(), and AddCommand().

◆ AddMultiwordCommand()

lldb::SBCommand SBCommand::AddMultiwordCommand ( const char * name,
const char * help = nullptr )

◆ GetFlags()

uint32_t SBCommand::GetFlags ( )

Definition at line 747 of file SBCommandInterpreter.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetHelp()

const char * SBCommand::GetHelp ( )

◆ GetHelpLong()

const char * SBCommand::GetHelpLong ( )

◆ GetName()

const char * SBCommand::GetName ( )

◆ IsValid()

bool SBCommand::IsValid ( )

◆ operator bool()

SBCommand::operator bool ( ) const
explicit

Definition at line 655 of file SBCommandInterpreter.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ SetFlags()

void SBCommand::SetFlags ( uint32_t flags)

Definition at line 753 of file SBCommandInterpreter.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ SetHelp()

void SBCommand::SetHelp ( const char * help)

Definition at line 682 of file SBCommandInterpreter.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ SetHelpLong()

void SBCommand::SetHelpLong ( const char * help)

Definition at line 689 of file SBCommandInterpreter.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ SBCommandInterpreter

friend class SBCommandInterpreter
friend

Definition at line 475 of file SBCommandInterpreter.h.

References SBCommandInterpreter.

Referenced by SBCommandInterpreter.

◆ SBDebugger

friend class SBDebugger
friend

Definition at line 474 of file SBCommandInterpreter.h.

References SBDebugger.

Referenced by SBDebugger.

Member Data Documentation

◆ m_opaque_sp


The documentation for this class was generated from the following files: