C# Class LLDB.Target

Inheritance: IDisposable
Exibir arquivo Open project: tritao/LLDBSharp Class Usage Examples

Public Properties

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

Protected Properties

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

Public Methods

Method Description
AddModule ( LLDB module_spec ) : LLDB.Module
AddModule ( string path, string triple, string uuid ) : LLDB.Module
AddModule ( string path, string triple, string uuid_cstr, string symfile ) : LLDB.Module
AddModule ( LLDB module ) : bool
Attach ( LLDB attach_info, LLDB error ) : LLDB.Process
AttachToProcessWithID ( LLDB listener, int pid, LLDB error ) : LLDB.Process
AttachToProcessWithID ( LLDB listener, ulong pid, LLDB error ) : LLDB.Process

Attach to process with pid.

AttachToProcessWithName ( LLDB listener, string name, bool wait_for, LLDB error ) : LLDB.Process

Attach to process with name.

BreakpointCreateByAddress ( ulong address ) : LLDB.Breakpoint
BreakpointCreateByLocation ( LLDB file_spec, uint line ) : LLDB.Breakpoint
BreakpointCreateByLocation ( LLDB file_spec, uint line, ulong offset ) : LLDB.Breakpoint
BreakpointCreateByLocation ( string file, uint line ) : LLDB.Breakpoint
BreakpointCreateByName ( string symbol_name, LLDB module_list, LLDB comp_unit_list ) : LLDB.Breakpoint
BreakpointCreateByName ( string symbol_name, string module_name ) : LLDB.Breakpoint
BreakpointCreateByName ( string symbol_name, uint name_type_mask, LLDB module_list, LLDB comp_unit_list ) : LLDB.Breakpoint
BreakpointCreateByName ( string symbol_name, uint name_type_mask, LLDB symbol_language, LLDB module_list, LLDB comp_unit_list ) : LLDB.Breakpoint
BreakpointCreateByRegex ( string symbol_name_regex, LLDB module_list, LLDB comp_unit_list ) : LLDB.Breakpoint
BreakpointCreateByRegex ( string symbol_name_regex, LLDB symbol_language, LLDB module_list, LLDB comp_unit_list ) : LLDB.Breakpoint
BreakpointCreateByRegex ( string symbol_name_regex, string module_name ) : LLDB.Breakpoint
BreakpointCreateBySBAddress ( LLDB address ) : LLDB.Breakpoint
BreakpointCreateBySourceRegex ( string source_regex, LLDB module_list, LLDB source_file ) : LLDB.Breakpoint
BreakpointCreateBySourceRegex ( string source_regex, LLDB module_list, LLDB source_file, LLDB func_names ) : LLDB.Breakpoint
BreakpointCreateBySourceRegex ( string source_regex, LLDB source_file, string module_name ) : LLDB.Breakpoint
BreakpointCreateForException ( LLDB language, bool catch_bp, bool throw_bp ) : LLDB.Breakpoint
BreakpointDelete ( int break_id ) : bool
Clear ( ) : void
ClearModuleLoadAddress ( LLDB module ) : LLDB.Error

Clear the section base load addresses for all sections in a module.

ClearSectionLoadAddress ( LLDB section ) : LLDB.Error

Clear the base load address for a module section.

ConnectRemote ( LLDB listener, string url, string plugin_name, LLDB error ) : LLDB.Process

Connect to a remote debug server with url.

CreateValueFromAddress ( string name, LLDB addr, LLDB type ) : LLDB.Value
CreateValueFromData ( string name, LLDB data, LLDB type ) : LLDB.Value
CreateValueFromExpression ( string name, string expr ) : LLDB.Value
DeleteAllBreakpoints ( ) : bool
DeleteAllWatchpoints ( ) : bool
DeleteWatchpoint ( int watch_id ) : bool
DisableAllBreakpoints ( ) : bool
DisableAllWatchpoints ( ) : bool
Dispose ( ) : void
EnableAllBreakpoints ( ) : bool
EnableAllWatchpoints ( ) : bool
Equals ( object obj ) : bool
EvaluateExpression ( string expr ) : LLDB.Value
EvaluateExpression ( string expr, LLDB options ) : LLDB.Value
EventIsTargetEvent ( LLDB @event ) : bool
FindBreakpointByID ( int break_id ) : LLDB.Breakpoint
FindFirstGlobalVariable ( string name ) : LLDB.Value

Find the first global (or static) variable by name.

FindFirstType ( string type ) : LLDB.Type
FindFunctions ( string name, uint name_type_mask ) : LLDB.SymbolContextList

Find functions by name.

FindGlobalFunctions ( string name, uint max_matches, LLDB matchtype ) : LLDB.SymbolContextList

Find global functions by their name with pattern matching.

FindGlobalVariables ( string name, uint max_matches ) : LLDB.ValueList

Find global and static variables by name.

FindGlobalVariables ( string name, uint max_matches, LLDB matchtype ) : LLDB.ValueList

Find global and static variables by pattern.

FindModule ( LLDB file_spec ) : LLDB.Module
FindSymbols ( string name, LLDB type ) : LLDB.SymbolContextList
FindTypes ( string type ) : LLDB.TypeList
FindWatchpointByID ( int watch_id ) : LLDB.Watchpoint
GetBasicType ( LLDB type ) : LLDB.Type
GetBreakpointAtIndex ( uint idx ) : LLDB.Breakpoint
GetBroadcaster ( ) : LLDB.Broadcaster
GetDebugger ( ) : LLDB.Debugger
GetDescription ( LLDB description, LLDB description_level ) : bool
GetExecutable ( ) : LLDB.FileSpec
GetHashCode ( ) : int
GetInstructions ( LLDB base_addr, global buf, uint size ) : LLDB.InstructionList
GetInstructions ( ulong base_addr, global buf, uint size ) : LLDB.InstructionList
GetInstructionsWithFlavor ( LLDB base_addr, string flavor_string, global buf, uint size ) : LLDB.InstructionList
GetInstructionsWithFlavor ( ulong base_addr, string flavor_string, global buf, uint size ) : LLDB.InstructionList
GetLaunchInfo ( ) : LLDB.LaunchInfo
GetModuleAtIndex ( uint idx ) : LLDB.Module
GetModuleAtIndexFromEvent ( uint idx, LLDB @event ) : LLDB.Module
GetNumModulesFromEvent ( LLDB @event ) : uint
GetPlatform ( ) : LLDB.Platform

Return the platform object associated with the target.

After return, the platform object should be checked for

validity.

GetProcess ( ) : LLDB.Process
GetSourceManager ( ) : LLDB.SourceManager
GetTargetFromEvent ( LLDB @event ) : LLDB.Target
GetWatchpointAtIndex ( uint idx ) : LLDB.Watchpoint
Install ( ) : LLDB.Error

Install any binaries that need to be installed.

This function does nothing when debugging on the host system.

When connected to remote platforms, the target's main executable

and any modules that have their remote install path set will be

installed on the remote platform. If the main executable doesn't

have an install location set, it will be installed in the remote

platform's working directory.

IsValid ( ) : bool
Launch ( LLDB launch_info, LLDB error ) : LLDB.Process
Launch ( LLDB listener, sbyte argv, sbyte envp, string stdin_path, string stdout_path, string stderr_path, string working_directory, uint launch_flags, bool stop_at_entry, LLDB &error ) : LLDB.Process

Launch a new process.

Launch a new process by spawning a new process using the

target object's executable module's file as the file to launch.

Arguments are given in

and the environment variables

are in

Standard input and output files can be

optionally re-directed to

and

LaunchSimple ( sbyte argv, sbyte envp, string working_directory ) : LLDB.Process

Launch a new process with sensible defaults.

LoadCore ( string core_file ) : LLDB.Process
ReadInstructions ( LLDB base_addr, uint count ) : LLDB.InstructionList
ReadInstructions ( LLDB base_addr, uint count, string flavor_string ) : LLDB.InstructionList
ReadMemory ( LLDB addr, global buf, uint size, LLDB error ) : uint

Read target memory. If a target process is running then memory

is read from here. Otherwise the memory is read from the object

files. For a target whose bytes are sized as a multiple of host

bytes, the data read back will preserve the target's byte order.

RemoveModule ( LLDB module ) : bool
ResolveFileAddress ( ulong file_addr ) : LLDB.Address

Resolve a current file address into a section offset address.

ResolveLoadAddress ( ulong vm_addr ) : LLDB.Address

Resolve a current load address into a section offset address.

ResolvePastLoadAddress ( uint stop_id, ulong vm_addr ) : LLDB.Address

Resolve a current load address into a section offset address

using the process stop ID to identify a time in the past.

ResolveSymbolContextForAddress ( LLDB addr, uint resolve_scope ) : LLDB.SymbolContext
SetModuleLoadAddress ( LLDB module, long sections_offset ) : LLDB.Error

Slide all file addresses for all module sections so that

appears to loaded at these slide addresses.

When you need all sections within a module to be loaded at a

rigid slide from the addresses found in the module object file,

this function will allow you to easily and quickly slide all

module sections.

SetSectionLoadAddress ( LLDB section, ulong section_base_addr ) : LLDB.Error

Set the base load address for a module section.

Target ( ) : System
Target ( LLDB rhs ) : System
WatchAddress ( ulong addr, uint size, bool read, bool write, LLDB error ) : LLDB.Watchpoint
__CreateInstance ( Target native, bool skipVTables = false ) : Target
__CreateInstance ( global native, bool skipVTables = false ) : Target
operator ( ) : bool

Protected Methods

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

Private Methods

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

Method Details

AddModule() public method

public AddModule ( LLDB module_spec ) : LLDB.Module
module_spec LLDB
return LLDB.Module

AddModule() public method

public AddModule ( string path, string triple, string uuid ) : LLDB.Module
path string
triple string
uuid string
return LLDB.Module

AddModule() public method

public AddModule ( string path, string triple, string uuid_cstr, string symfile ) : LLDB.Module
path string
triple string
uuid_cstr string
symfile string
return LLDB.Module

AddModule() public method

public AddModule ( LLDB module ) : bool
module LLDB
return bool

Attach() public method

public Attach ( LLDB attach_info, LLDB error ) : LLDB.Process
attach_info LLDB
error LLDB
return LLDB.Process

AttachToProcessWithID() public method

public AttachToProcessWithID ( LLDB listener, int pid, LLDB error ) : LLDB.Process
listener LLDB
pid int
error LLDB
return LLDB.Process

AttachToProcessWithID() public method

Attach to process with pid.

public AttachToProcessWithID ( LLDB listener, ulong pid, LLDB error ) : LLDB.Process
listener LLDB /// An optional listener that will receive all process events. /// If /// is valid then /// will listen to all /// process events. If not valid, then this target's debugger /// (SBTarget::GetDebugger()) will listen to all process events. ///
pid ulong /// The process ID to attach to. ///
error LLDB /// An error explaining what went wrong if attach fails. ///
return LLDB.Process

AttachToProcessWithName() public method

Attach to process with name.

public AttachToProcessWithName ( LLDB listener, string name, bool wait_for, LLDB error ) : LLDB.Process
listener LLDB /// An optional listener that will receive all process events. /// If /// is valid then /// will listen to all /// process events. If not valid, then this target's debugger /// (SBTarget::GetDebugger()) will listen to all process events. ///
name string /// Basename of process to attach to. ///
wait_for bool /// If true wait for a new instance of 'name' to be launched. ///
error LLDB /// An error explaining what went wrong if attach fails. ///
return LLDB.Process

BreakpointCreateByAddress() public method

public BreakpointCreateByAddress ( ulong address ) : LLDB.Breakpoint
address ulong
return LLDB.Breakpoint

BreakpointCreateByLocation() public method

public BreakpointCreateByLocation ( LLDB file_spec, uint line ) : LLDB.Breakpoint
file_spec LLDB
line uint
return LLDB.Breakpoint

BreakpointCreateByLocation() public method

public BreakpointCreateByLocation ( LLDB file_spec, uint line, ulong offset ) : LLDB.Breakpoint
file_spec LLDB
line uint
offset ulong
return LLDB.Breakpoint

BreakpointCreateByLocation() public method

public BreakpointCreateByLocation ( string file, uint line ) : LLDB.Breakpoint
file string
line uint
return LLDB.Breakpoint

BreakpointCreateByName() public method

public BreakpointCreateByName ( string symbol_name, LLDB module_list, LLDB comp_unit_list ) : LLDB.Breakpoint
symbol_name string
module_list LLDB
comp_unit_list LLDB
return LLDB.Breakpoint

BreakpointCreateByName() public method

public BreakpointCreateByName ( string symbol_name, string module_name ) : LLDB.Breakpoint
symbol_name string
module_name string
return LLDB.Breakpoint

BreakpointCreateByName() public method

public BreakpointCreateByName ( string symbol_name, uint name_type_mask, LLDB module_list, LLDB comp_unit_list ) : LLDB.Breakpoint
symbol_name string
name_type_mask uint
module_list LLDB
comp_unit_list LLDB
return LLDB.Breakpoint

BreakpointCreateByName() public method

public BreakpointCreateByName ( string symbol_name, uint name_type_mask, LLDB symbol_language, LLDB module_list, LLDB comp_unit_list ) : LLDB.Breakpoint
symbol_name string
name_type_mask uint
symbol_language LLDB
module_list LLDB
comp_unit_list LLDB
return LLDB.Breakpoint

BreakpointCreateByRegex() public method

public BreakpointCreateByRegex ( string symbol_name_regex, LLDB module_list, LLDB comp_unit_list ) : LLDB.Breakpoint
symbol_name_regex string
module_list LLDB
comp_unit_list LLDB
return LLDB.Breakpoint

BreakpointCreateByRegex() public method

public BreakpointCreateByRegex ( string symbol_name_regex, LLDB symbol_language, LLDB module_list, LLDB comp_unit_list ) : LLDB.Breakpoint
symbol_name_regex string
symbol_language LLDB
module_list LLDB
comp_unit_list LLDB
return LLDB.Breakpoint

BreakpointCreateByRegex() public method

public BreakpointCreateByRegex ( string symbol_name_regex, string module_name ) : LLDB.Breakpoint
symbol_name_regex string
module_name string
return LLDB.Breakpoint

BreakpointCreateBySBAddress() public method

public BreakpointCreateBySBAddress ( LLDB address ) : LLDB.Breakpoint
address LLDB
return LLDB.Breakpoint

BreakpointCreateBySourceRegex() public method

public BreakpointCreateBySourceRegex ( string source_regex, LLDB module_list, LLDB source_file ) : LLDB.Breakpoint
source_regex string
module_list LLDB
source_file LLDB
return LLDB.Breakpoint

BreakpointCreateBySourceRegex() public method

public BreakpointCreateBySourceRegex ( string source_regex, LLDB module_list, LLDB source_file, LLDB func_names ) : LLDB.Breakpoint
source_regex string
module_list LLDB
source_file LLDB
func_names LLDB
return LLDB.Breakpoint

BreakpointCreateBySourceRegex() public method

public BreakpointCreateBySourceRegex ( string source_regex, LLDB source_file, string module_name ) : LLDB.Breakpoint
source_regex string
source_file LLDB
module_name string
return LLDB.Breakpoint

BreakpointCreateForException() public method

public BreakpointCreateForException ( LLDB language, bool catch_bp, bool throw_bp ) : LLDB.Breakpoint
language LLDB
catch_bp bool
throw_bp bool
return LLDB.Breakpoint

BreakpointDelete() public method

public BreakpointDelete ( int break_id ) : bool
break_id int
return bool

Clear() public method

public Clear ( ) : void
return void

ClearModuleLoadAddress() public method

Clear the section base load addresses for all sections in a module.

public ClearModuleLoadAddress ( LLDB module ) : LLDB.Error
module LLDB /// The module to unload. ///
return LLDB.Error

ClearSectionLoadAddress() public method

Clear the base load address for a module section.

public ClearSectionLoadAddress ( LLDB section ) : LLDB.Error
section LLDB /// The section whose base load address will be cleared within /// this target. ///
return LLDB.Error

ConnectRemote() public method

Connect to a remote debug server with url.

public ConnectRemote ( LLDB listener, string url, string plugin_name, LLDB error ) : LLDB.Process
listener LLDB /// An optional listener that will receive all process events. /// If /// is valid then /// will listen to all /// process events. If not valid, then this target's debugger /// (SBTarget::GetDebugger()) will listen to all process events. ///
url string /// The url to connect to, e.g., 'connect://localhost:12345'. ///
plugin_name string /// The plugin name to be used; can be nullptr. ///
error LLDB /// An error explaining what went wrong if the connect fails. ///
return LLDB.Process

CreateValueFromAddress() public method

public CreateValueFromAddress ( string name, LLDB addr, LLDB type ) : LLDB.Value
name string
addr LLDB
type LLDB
return LLDB.Value

CreateValueFromData() public method

public CreateValueFromData ( string name, LLDB data, LLDB type ) : LLDB.Value
name string
data LLDB
type LLDB
return LLDB.Value

CreateValueFromExpression() public method

public CreateValueFromExpression ( string name, string expr ) : LLDB.Value
name string
expr string
return LLDB.Value

DeleteAllBreakpoints() public method

public DeleteAllBreakpoints ( ) : bool
return bool

DeleteAllWatchpoints() public method

public DeleteAllWatchpoints ( ) : bool
return bool

DeleteWatchpoint() public method

public DeleteWatchpoint ( int watch_id ) : bool
watch_id int
return bool

DisableAllBreakpoints() public method

public DisableAllBreakpoints ( ) : bool
return bool

DisableAllWatchpoints() public method

public DisableAllWatchpoints ( ) : bool
return bool

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

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

EnableAllBreakpoints() public method

public EnableAllBreakpoints ( ) : bool
return bool

EnableAllWatchpoints() public method

public EnableAllWatchpoints ( ) : bool
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

EvaluateExpression() public method

public EvaluateExpression ( string expr ) : LLDB.Value
expr string
return LLDB.Value

EvaluateExpression() public method

public EvaluateExpression ( string expr, LLDB options ) : LLDB.Value
expr string
options LLDB
return LLDB.Value

EventIsTargetEvent() public static method

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

FindBreakpointByID() public method

public FindBreakpointByID ( int break_id ) : LLDB.Breakpoint
break_id int
return LLDB.Breakpoint

FindFirstGlobalVariable() public method

Find the first global (or static) variable by name.

public FindFirstGlobalVariable ( string name ) : LLDB.Value
name string /// The name of the global or static variable we are looking /// for. ///
return LLDB.Value

FindFirstType() public method

public FindFirstType ( string type ) : LLDB.Type
type string
return LLDB.Type

FindFunctions() public method

Find functions by name.

public FindFunctions ( string name, uint name_type_mask ) : LLDB.SymbolContextList
name string /// The name of the function we are looking for. ///
name_type_mask uint /// A logical OR of one or more FunctionNameType enum bits that /// indicate what kind of names should be used when doing the /// lookup. Bits include fully qualified names, base names, /// C++ methods, or ObjC selectors. /// See FunctionNameType for more details. ///
return LLDB.SymbolContextList

FindGlobalFunctions() public method

Find global functions by their name with pattern matching.

public FindGlobalFunctions ( string name, uint max_matches, LLDB matchtype ) : LLDB.SymbolContextList
name string /// The pattern to search for global or static variables ///
max_matches uint /// Allow the number of matches to be limited to ///
matchtype LLDB /// The match type to use. ///
return LLDB.SymbolContextList

FindGlobalVariables() public method

Find global and static variables by name.

public FindGlobalVariables ( string name, uint max_matches ) : LLDB.ValueList
name string /// The name of the global or static variable we are looking /// for. ///
max_matches uint /// Allow the number of matches to be limited to ///
return LLDB.ValueList

FindGlobalVariables() public method

Find global and static variables by pattern.

public FindGlobalVariables ( string name, uint max_matches, LLDB matchtype ) : LLDB.ValueList
name string /// The pattern to search for global or static variables ///
max_matches uint /// Allow the number of matches to be limited to ///
matchtype LLDB /// The match type to use. ///
return LLDB.ValueList

FindModule() public method

public FindModule ( LLDB file_spec ) : LLDB.Module
file_spec LLDB
return LLDB.Module

FindSymbols() public method

public FindSymbols ( string name, LLDB type ) : LLDB.SymbolContextList
name string
type LLDB
return LLDB.SymbolContextList

FindTypes() public method

public FindTypes ( string type ) : LLDB.TypeList
type string
return LLDB.TypeList

FindWatchpointByID() public method

public FindWatchpointByID ( int watch_id ) : LLDB.Watchpoint
watch_id int
return LLDB.Watchpoint

GetBasicType() public method

public GetBasicType ( LLDB type ) : LLDB.Type
type LLDB
return LLDB.Type

GetBreakpointAtIndex() public method

public GetBreakpointAtIndex ( uint idx ) : LLDB.Breakpoint
idx uint
return LLDB.Breakpoint

GetBroadcaster() public method

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

GetDebugger() public method

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

GetDescription() public method

public GetDescription ( LLDB description, LLDB description_level ) : bool
description LLDB
description_level LLDB
return bool

GetExecutable() public method

public GetExecutable ( ) : LLDB.FileSpec
return LLDB.FileSpec

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetInstructions() public method

public GetInstructions ( LLDB base_addr, global buf, uint size ) : LLDB.InstructionList
base_addr LLDB
buf global
size uint
return LLDB.InstructionList

GetInstructions() public method

public GetInstructions ( ulong base_addr, global buf, uint size ) : LLDB.InstructionList
base_addr ulong
buf global
size uint
return LLDB.InstructionList

GetInstructionsWithFlavor() public method

public GetInstructionsWithFlavor ( LLDB base_addr, string flavor_string, global buf, uint size ) : LLDB.InstructionList
base_addr LLDB
flavor_string string
buf global
size uint
return LLDB.InstructionList

GetInstructionsWithFlavor() public method

public GetInstructionsWithFlavor ( ulong base_addr, string flavor_string, global buf, uint size ) : LLDB.InstructionList
base_addr ulong
flavor_string string
buf global
size uint
return LLDB.InstructionList

GetLaunchInfo() public method

public GetLaunchInfo ( ) : LLDB.LaunchInfo
return LLDB.LaunchInfo

GetModuleAtIndex() public method

public GetModuleAtIndex ( uint idx ) : LLDB.Module
idx uint
return LLDB.Module

GetModuleAtIndexFromEvent() public static method

public static GetModuleAtIndexFromEvent ( uint idx, LLDB @event ) : LLDB.Module
idx uint
@event LLDB
return LLDB.Module

GetNumModulesFromEvent() public static method

public static GetNumModulesFromEvent ( LLDB @event ) : uint
@event LLDB
return uint

GetPlatform() public method

Return the platform object associated with the target.

After return, the platform object should be checked for

validity.

public GetPlatform ( ) : LLDB.Platform
return LLDB.Platform

GetProcess() public method

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

GetSourceManager() public method

public GetSourceManager ( ) : LLDB.SourceManager
return LLDB.SourceManager

GetTargetFromEvent() public static method

public static GetTargetFromEvent ( LLDB @event ) : LLDB.Target
@event LLDB
return LLDB.Target

GetWatchpointAtIndex() public method

public GetWatchpointAtIndex ( uint idx ) : LLDB.Watchpoint
idx uint
return LLDB.Watchpoint

Install() public method

Install any binaries that need to be installed.

This function does nothing when debugging on the host system.

When connected to remote platforms, the target's main executable

and any modules that have their remote install path set will be

installed on the remote platform. If the main executable doesn't

have an install location set, it will be installed in the remote

platform's working directory.

public Install ( ) : LLDB.Error
return LLDB.Error

IsValid() public method

public IsValid ( ) : bool
return bool

Launch() public method

public Launch ( LLDB launch_info, LLDB error ) : LLDB.Process
launch_info LLDB
error LLDB
return LLDB.Process

Launch() public method

Launch a new process.

Launch a new process by spawning a new process using the

target object's executable module's file as the file to launch.

Arguments are given in

and the environment variables

are in

Standard input and output files can be

optionally re-directed to

and

public Launch ( LLDB listener, sbyte argv, sbyte envp, string stdin_path, string stdout_path, string stderr_path, string working_directory, uint launch_flags, bool stop_at_entry, LLDB &error ) : LLDB.Process
listener LLDB /// An optional listener that will receive all process events. /// If /// is valid then /// will listen to all /// process events. If not valid, then this target's debugger /// (SBTarget::GetDebugger()) will listen to all process events. ///
argv sbyte /// The argument array. ///
envp sbyte /// The environment array. ///
stdin_path string /// The path to use when re-directing the STDIN of the new /// process. If all stdXX_path arguments are nullptr, a pseudo /// terminal will be used. ///
stdout_path string /// The path to use when re-directing the STDOUT of the new /// process. If all stdXX_path arguments are nullptr, a pseudo /// terminal will be used. ///
stderr_path string /// The path to use when re-directing the STDERR of the new /// process. If all stdXX_path arguments are nullptr, a pseudo /// terminal will be used. ///
working_directory string /// The working directory to have the child process run in ///
launch_flags uint /// Flags to modify the launch ( ///
stop_at_entry bool /// If false do not stop the inferior at the entry point. ///
error LLDB /// An error object. Contains the reason if there is some failure. ///
return LLDB.Process

LaunchSimple() public method

Launch a new process with sensible defaults.

public LaunchSimple ( sbyte argv, sbyte envp, string working_directory ) : LLDB.Process
argv sbyte /// The argument array. ///
envp sbyte /// The environment array. ///
working_directory string /// The working directory to have the child process run in /// Default: listener /// Set to the target's debugger (SBTarget::GetDebugger()) /// Default: launch_flags /// Empty launch flags /// Default: stdin_path /// Default: stdout_path /// Default: stderr_path /// A pseudo terminal will be used. ///
return LLDB.Process

LoadCore() public method

public LoadCore ( string core_file ) : LLDB.Process
core_file string
return LLDB.Process

ReadInstructions() public method

public ReadInstructions ( LLDB base_addr, uint count ) : LLDB.InstructionList
base_addr LLDB
count uint
return LLDB.InstructionList

ReadInstructions() public method

public ReadInstructions ( LLDB base_addr, uint count, string flavor_string ) : LLDB.InstructionList
base_addr LLDB
count uint
flavor_string string
return LLDB.InstructionList

ReadMemory() public method

Read target memory. If a target process is running then memory

is read from here. Otherwise the memory is read from the object

files. For a target whose bytes are sized as a multiple of host

bytes, the data read back will preserve the target's byte order.

public ReadMemory ( LLDB addr, global buf, uint size, LLDB error ) : uint
addr LLDB /// A target address to read from. ///
buf global /// The buffer to read memory into. ///
size uint /// The maximum number of host bytes to read in the buffer passed /// into this call ///
error LLDB /// Error information is written here if the memory read fails. ///
return uint

RemoveModule() public method

public RemoveModule ( LLDB module ) : bool
module LLDB
return bool

ResolveFileAddress() public method

Resolve a current file address into a section offset address.

public ResolveFileAddress ( ulong file_addr ) : LLDB.Address
file_addr ulong
return LLDB.Address

ResolveLoadAddress() public method

Resolve a current load address into a section offset address.

public ResolveLoadAddress ( ulong vm_addr ) : LLDB.Address
vm_addr ulong /// A virtual address from the current process state that is to /// be translated into a section offset address. ///
return LLDB.Address

ResolvePastLoadAddress() public method

Resolve a current load address into a section offset address

using the process stop ID to identify a time in the past.

public ResolvePastLoadAddress ( uint stop_id, ulong vm_addr ) : LLDB.Address
stop_id uint /// Each time a process stops, the process stop ID integer gets /// incremented. These stop IDs are used to identify past times /// and can be used in history objects as a cheap way to store /// the time at which the sample was taken. Specifying /// UINT32_MAX will always resolve the address using the /// currently loaded sections. ///
vm_addr ulong /// A virtual address from the current process state that is to /// be translated into a section offset address. ///
return LLDB.Address

ResolveSymbolContextForAddress() public method

public ResolveSymbolContextForAddress ( LLDB addr, uint resolve_scope ) : LLDB.SymbolContext
addr LLDB
resolve_scope uint
return LLDB.SymbolContext

SetModuleLoadAddress() public method

Slide all file addresses for all module sections so that

appears to loaded at these slide addresses.

When you need all sections within a module to be loaded at a

rigid slide from the addresses found in the module object file,

this function will allow you to easily and quickly slide all

module sections.

public SetModuleLoadAddress ( LLDB module, long sections_offset ) : LLDB.Error
module LLDB /// The module to load. ///
sections_offset long /// An offset that will be applied to all section file addresses /// (the virtual addresses found in the object file itself). ///
return LLDB.Error

SetSectionLoadAddress() public method

Set the base load address for a module section.

public SetSectionLoadAddress ( LLDB section, ulong section_base_addr ) : LLDB.Error
section LLDB /// The section whose base load address will be set within this /// target. ///
section_base_addr ulong /// The base address for the section. ///
return LLDB.Error

Target() public method

public Target ( ) : System
return System

Target() public method

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

Target() protected method

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

WatchAddress() public method

public WatchAddress ( ulong addr, uint size, bool read, bool write, LLDB error ) : LLDB.Watchpoint
addr ulong
size uint
read bool
write bool
error LLDB
return LLDB.Watchpoint

__CreateInstance() public static method

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

__CreateInstance() public static method

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

operator() public static method

public static operator ( ) : bool
return bool

Property Details

NativeToManagedMap public_oe static_oe property

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

__OriginalVTables protected_oe property

protected void*[] __OriginalVTables
return void*[]

__PointerAdjustment protected_oe property

protected int __PointerAdjustment
return int

__ownsNativeInstance protected_oe property

protected bool __ownsNativeInstance
return bool