C# Class LLDB.CommandInterpreter

Inheritance: IDisposable
Show file Open project: tritao/LLDBSharp Class Usage Examples

Public Properties

Property Type Description
NativeToManagedMap CommandInterpreter>.System.Collections.Concurrent.ConcurrentDictionary

Protected Properties

Property Type Description
__OriginalVTables void*[]
__PointerAdjustment int
__ownsNativeInstance bool

Public Methods

Method Description
AddCommand ( string name, LLDB impl, string help ) : LLDB.Command
AddMultiwordCommand ( string name, string help ) : LLDB.Command
AliasExists ( string cmd ) : bool
CommandExists ( string cmd ) : bool
CommandInterpreter ( LLDB rhs ) : System
Dispose ( ) : void
EventIsCommandInterpreterEvent ( LLDB @event ) : bool
GetArgumentDescriptionAsCString ( LLDB arg_type ) : string
GetArgumentTypeAsCString ( LLDB arg_type ) : string
GetBroadcaster ( ) : LLDB.Broadcaster
GetDebugger ( ) : LLDB.Debugger
GetIOHandlerControlSequence ( sbyte ch ) : string

Get the string that needs to be written to the debugger stdin file

handle when a control character is typed.

Some GUI programs will intercept "control + char" sequences and want

to have them do what normally would happen when using a real

terminal, so this function allows GUI programs to emulate this

functionality.

GetProcess ( ) : LLDB.Process
HandleCommand ( string command_line, LLDB exe_ctx, LLDB result, bool add_to_history ) : LLDB.ReturnStatus
HandleCommand ( string command_line, LLDB result, bool add_to_history ) : LLDB.ReturnStatus
HandleCommandsFromFile ( LLDB file, LLDB override_context, LLDB options, LLDB result ) : void
HandleCompletion ( string current_line, string cursor, string last_char, int match_start_point, int max_return_elements, LLDB matches ) : int
HandleCompletion ( string current_line, uint cursor_pos, int match_start_point, int max_return_elements, LLDB matches ) : int
HasAliasOptions ( ) : bool
HasAliases ( ) : bool
HasCommands ( ) : bool
IsActive ( ) : bool

Return true if the command interpreter is the active IO handler.

This indicates that any input coming into the debugger handles will

go to the command interpreter and will result in LLDB command line

commands being executed.

IsValid ( ) : bool
ResolveCommand ( string command_line, LLDB result ) : void

Resolve the command just as HandleCommand would, expanding abbreviations

and aliases. If successful, result->GetOutput has the full expansion.

SetCommandOverrideCallback ( string command_name, LLDB callback, global baton ) : bool
SourceInitFileInCurrentWorkingDirectory ( LLDB result ) : void
SourceInitFileInHomeDirectory ( LLDB result ) : void
__CreateInstance ( CommandInterpreter native, bool skipVTables = false ) : CommandInterpreter
__CreateInstance ( global native, bool skipVTables = false ) : CommandInterpreter

Protected Methods

Method Description
CommandInterpreter ( void native, bool skipVTables = false ) : System
Dispose ( bool disposing ) : void

Private Methods

Method Description
CommandInterpreter ( CommandInterpreter native, bool skipVTables = false ) : System
__CopyValue ( CommandInterpreter native ) : void*

Method Details

AddCommand() public method

public AddCommand ( string name, LLDB impl, string help ) : LLDB.Command
name string
impl LLDB
help string
return LLDB.Command

AddMultiwordCommand() public method

public AddMultiwordCommand ( string name, string help ) : LLDB.Command
name string
help string
return LLDB.Command

AliasExists() public method

public AliasExists ( string cmd ) : bool
cmd string
return bool

CommandExists() public method

public CommandExists ( string cmd ) : bool
cmd string
return bool

CommandInterpreter() public method

public CommandInterpreter ( LLDB rhs ) : System
rhs LLDB
return System

CommandInterpreter() protected method

protected CommandInterpreter ( void native, bool skipVTables = false ) : System
native void
skipVTables bool
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EventIsCommandInterpreterEvent() public static method

public static EventIsCommandInterpreterEvent ( LLDB @event ) : bool
@event LLDB
return bool

GetArgumentDescriptionAsCString() public static method

public static GetArgumentDescriptionAsCString ( LLDB arg_type ) : string
arg_type LLDB
return string

GetArgumentTypeAsCString() public static method

public static GetArgumentTypeAsCString ( LLDB arg_type ) : string
arg_type LLDB
return string

GetBroadcaster() public method

public GetBroadcaster ( ) : LLDB.Broadcaster
return LLDB.Broadcaster

GetDebugger() public method

public GetDebugger ( ) : LLDB.Debugger
return LLDB.Debugger

GetIOHandlerControlSequence() public method

Get the string that needs to be written to the debugger stdin file

handle when a control character is typed.

Some GUI programs will intercept "control + char" sequences and want

to have them do what normally would happen when using a real

terminal, so this function allows GUI programs to emulate this

functionality.

public GetIOHandlerControlSequence ( sbyte ch ) : string
ch sbyte /// The character that was typed along with the control key ///
return string

GetProcess() public method

public GetProcess ( ) : LLDB.Process
return LLDB.Process

HandleCommand() public method

public HandleCommand ( string command_line, LLDB exe_ctx, LLDB result, bool add_to_history ) : LLDB.ReturnStatus
command_line string
exe_ctx LLDB
result LLDB
add_to_history bool
return LLDB.ReturnStatus

HandleCommand() public method

public HandleCommand ( string command_line, LLDB result, bool add_to_history ) : LLDB.ReturnStatus
command_line string
result LLDB
add_to_history bool
return LLDB.ReturnStatus

HandleCommandsFromFile() public method

public HandleCommandsFromFile ( LLDB file, LLDB override_context, LLDB options, LLDB result ) : void
file LLDB
override_context LLDB
options LLDB
result LLDB
return void

HandleCompletion() public method

public HandleCompletion ( string current_line, string cursor, string last_char, int match_start_point, int max_return_elements, LLDB matches ) : int
current_line string
cursor string
last_char string
match_start_point int
max_return_elements int
matches LLDB
return int

HandleCompletion() public method

public HandleCompletion ( string current_line, uint cursor_pos, int match_start_point, int max_return_elements, LLDB matches ) : int
current_line string
cursor_pos uint
match_start_point int
max_return_elements int
matches LLDB
return int

HasAliasOptions() public method

public HasAliasOptions ( ) : bool
return bool

HasAliases() public method

public HasAliases ( ) : bool
return bool

HasCommands() public method

public HasCommands ( ) : bool
return bool

IsActive() public method

Return true if the command interpreter is the active IO handler.

This indicates that any input coming into the debugger handles will

go to the command interpreter and will result in LLDB command line

commands being executed.

public IsActive ( ) : bool
return bool

IsValid() public method

public IsValid ( ) : bool
return bool

ResolveCommand() public method

Resolve the command just as HandleCommand would, expanding abbreviations

and aliases. If successful, result->GetOutput has the full expansion.

public ResolveCommand ( string command_line, LLDB result ) : void
command_line string
result LLDB
return void

SetCommandOverrideCallback() public method

public SetCommandOverrideCallback ( string command_name, LLDB callback, global baton ) : bool
command_name string
callback LLDB
baton global
return bool

SourceInitFileInCurrentWorkingDirectory() public method

public SourceInitFileInCurrentWorkingDirectory ( LLDB result ) : void
result LLDB
return void

SourceInitFileInHomeDirectory() public method

public SourceInitFileInHomeDirectory ( LLDB result ) : void
result LLDB
return void

__CreateInstance() public static method

public static __CreateInstance ( CommandInterpreter native, bool skipVTables = false ) : CommandInterpreter
native CommandInterpreter
skipVTables bool
return CommandInterpreter

__CreateInstance() public static method

public static __CreateInstance ( global native, bool skipVTables = false ) : CommandInterpreter
native global
skipVTables bool
return CommandInterpreter

Property Details

NativeToManagedMap public static property

public static System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap
return CommandInterpreter>.System.Collections.Concurrent.ConcurrentDictionary

__OriginalVTables protected property

protected void*[] __OriginalVTables
return void*[]

__PointerAdjustment protected property

protected int __PointerAdjustment
return int

__ownsNativeInstance protected property

protected bool __ownsNativeInstance
return bool