C# Class LLDB.Target

Inheritance: IDisposable
Afficher le fichier Open project: tritao/LLDBSharp Class Usage Examples

Méthodes publiques

Свойство Type Description
NativeToManagedMap Target>.System.Collections.Concurrent.ConcurrentDictionary

Protected Properties

Свойство Type Description
__OriginalVTables void*[]
__PointerAdjustment int
__ownsNativeInstance bool

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
Target ( void native, bool skipVTables = false ) : System

Private Methods

Méthode Description
Target ( Target native, bool skipVTables = false ) : System
__CopyValue ( Target native ) : void*

Method Details

AddModule() public méthode

public AddModule ( LLDB module_spec ) : LLDB.Module
module_spec LLDB
Résultat LLDB.Module

AddModule() public méthode

public AddModule ( string path, string triple, string uuid ) : LLDB.Module
path string
triple string
uuid string
Résultat LLDB.Module

AddModule() public méthode

public AddModule ( string path, string triple, string uuid_cstr, string symfile ) : LLDB.Module
path string
triple string
uuid_cstr string
symfile string
Résultat LLDB.Module

AddModule() public méthode

public AddModule ( LLDB module ) : bool
module LLDB
Résultat bool

Attach() public méthode

public Attach ( LLDB attach_info, LLDB error ) : LLDB.Process
attach_info LLDB
error LLDB
Résultat LLDB.Process

AttachToProcessWithID() public méthode

public AttachToProcessWithID ( LLDB listener, int pid, LLDB error ) : LLDB.Process
listener LLDB
pid int
error LLDB
Résultat LLDB.Process

AttachToProcessWithID() public méthode

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. ///
Résultat LLDB.Process

AttachToProcessWithName() public méthode

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. ///
Résultat LLDB.Process

BreakpointCreateByAddress() public méthode

public BreakpointCreateByAddress ( ulong address ) : LLDB.Breakpoint
address ulong
Résultat LLDB.Breakpoint

BreakpointCreateByLocation() public méthode

public BreakpointCreateByLocation ( LLDB file_spec, uint line ) : LLDB.Breakpoint
file_spec LLDB
line uint
Résultat LLDB.Breakpoint

BreakpointCreateByLocation() public méthode

public BreakpointCreateByLocation ( LLDB file_spec, uint line, ulong offset ) : LLDB.Breakpoint
file_spec LLDB
line uint
offset ulong
Résultat LLDB.Breakpoint

BreakpointCreateByLocation() public méthode

public BreakpointCreateByLocation ( string file, uint line ) : LLDB.Breakpoint
file string
line uint
Résultat LLDB.Breakpoint

BreakpointCreateByName() public méthode

public BreakpointCreateByName ( string symbol_name, LLDB module_list, LLDB comp_unit_list ) : LLDB.Breakpoint
symbol_name string
module_list LLDB
comp_unit_list LLDB
Résultat LLDB.Breakpoint

BreakpointCreateByName() public méthode

public BreakpointCreateByName ( string symbol_name, string module_name ) : LLDB.Breakpoint
symbol_name string
module_name string
Résultat LLDB.Breakpoint

BreakpointCreateByName() public méthode

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
Résultat LLDB.Breakpoint

BreakpointCreateByName() public méthode

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
Résultat LLDB.Breakpoint

BreakpointCreateByRegex() public méthode

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
Résultat LLDB.Breakpoint

BreakpointCreateByRegex() public méthode

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
Résultat LLDB.Breakpoint

BreakpointCreateByRegex() public méthode

public BreakpointCreateByRegex ( string symbol_name_regex, string module_name ) : LLDB.Breakpoint
symbol_name_regex string
module_name string
Résultat LLDB.Breakpoint

BreakpointCreateBySBAddress() public méthode

public BreakpointCreateBySBAddress ( LLDB address ) : LLDB.Breakpoint
address LLDB
Résultat LLDB.Breakpoint

BreakpointCreateBySourceRegex() public méthode

public BreakpointCreateBySourceRegex ( string source_regex, LLDB module_list, LLDB source_file ) : LLDB.Breakpoint
source_regex string
module_list LLDB
source_file LLDB
Résultat LLDB.Breakpoint

BreakpointCreateBySourceRegex() public méthode

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
Résultat LLDB.Breakpoint

BreakpointCreateBySourceRegex() public méthode

public BreakpointCreateBySourceRegex ( string source_regex, LLDB source_file, string module_name ) : LLDB.Breakpoint
source_regex string
source_file LLDB
module_name string
Résultat LLDB.Breakpoint

BreakpointCreateForException() public méthode

public BreakpointCreateForException ( LLDB language, bool catch_bp, bool throw_bp ) : LLDB.Breakpoint
language LLDB
catch_bp bool
throw_bp bool
Résultat LLDB.Breakpoint

BreakpointDelete() public méthode

public BreakpointDelete ( int break_id ) : bool
break_id int
Résultat bool

Clear() public méthode

public Clear ( ) : void
Résultat void

ClearModuleLoadAddress() public méthode

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

public ClearModuleLoadAddress ( LLDB module ) : LLDB.Error
module LLDB /// The module to unload. ///
Résultat LLDB.Error

ClearSectionLoadAddress() public méthode

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. ///
Résultat LLDB.Error

ConnectRemote() public méthode

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. ///
Résultat LLDB.Process

CreateValueFromAddress() public méthode

public CreateValueFromAddress ( string name, LLDB addr, LLDB type ) : LLDB.Value
name string
addr LLDB
type LLDB
Résultat LLDB.Value

CreateValueFromData() public méthode

public CreateValueFromData ( string name, LLDB data, LLDB type ) : LLDB.Value
name string
data LLDB
type LLDB
Résultat LLDB.Value

CreateValueFromExpression() public méthode

public CreateValueFromExpression ( string name, string expr ) : LLDB.Value
name string
expr string
Résultat LLDB.Value

DeleteAllBreakpoints() public méthode

public DeleteAllBreakpoints ( ) : bool
Résultat bool

DeleteAllWatchpoints() public méthode

public DeleteAllWatchpoints ( ) : bool
Résultat bool

DeleteWatchpoint() public méthode

public DeleteWatchpoint ( int watch_id ) : bool
watch_id int
Résultat bool

DisableAllBreakpoints() public méthode

public DisableAllBreakpoints ( ) : bool
Résultat bool

DisableAllWatchpoints() public méthode

public DisableAllWatchpoints ( ) : bool
Résultat bool

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EnableAllBreakpoints() public méthode

public EnableAllBreakpoints ( ) : bool
Résultat bool

EnableAllWatchpoints() public méthode

public EnableAllWatchpoints ( ) : bool
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

EvaluateExpression() public méthode

public EvaluateExpression ( string expr ) : LLDB.Value
expr string
Résultat LLDB.Value

EvaluateExpression() public méthode

public EvaluateExpression ( string expr, LLDB options ) : LLDB.Value
expr string
options LLDB
Résultat LLDB.Value

EventIsTargetEvent() public static méthode

public static EventIsTargetEvent ( LLDB @event ) : bool
@event LLDB
Résultat bool

FindBreakpointByID() public méthode

public FindBreakpointByID ( int break_id ) : LLDB.Breakpoint
break_id int
Résultat LLDB.Breakpoint

FindFirstGlobalVariable() public méthode

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. ///
Résultat LLDB.Value

FindFirstType() public méthode

public FindFirstType ( string type ) : LLDB.Type
type string
Résultat LLDB.Type

FindFunctions() public méthode

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. ///
Résultat LLDB.SymbolContextList

FindGlobalFunctions() public méthode

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. ///
Résultat LLDB.SymbolContextList

FindGlobalVariables() public méthode

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 ///
Résultat LLDB.ValueList

FindGlobalVariables() public méthode

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. ///
Résultat LLDB.ValueList

FindModule() public méthode

public FindModule ( LLDB file_spec ) : LLDB.Module
file_spec LLDB
Résultat LLDB.Module

FindSymbols() public méthode

public FindSymbols ( string name, LLDB type ) : LLDB.SymbolContextList
name string
type LLDB
Résultat LLDB.SymbolContextList

FindTypes() public méthode

public FindTypes ( string type ) : LLDB.TypeList
type string
Résultat LLDB.TypeList

FindWatchpointByID() public méthode

public FindWatchpointByID ( int watch_id ) : LLDB.Watchpoint
watch_id int
Résultat LLDB.Watchpoint

GetBasicType() public méthode

public GetBasicType ( LLDB type ) : LLDB.Type
type LLDB
Résultat LLDB.Type

GetBreakpointAtIndex() public méthode

public GetBreakpointAtIndex ( uint idx ) : LLDB.Breakpoint
idx uint
Résultat LLDB.Breakpoint

GetBroadcaster() public méthode

public GetBroadcaster ( ) : LLDB.Broadcaster
Résultat LLDB.Broadcaster

GetDebugger() public méthode

public GetDebugger ( ) : LLDB.Debugger
Résultat LLDB.Debugger

GetDescription() public méthode

public GetDescription ( LLDB description, LLDB description_level ) : bool
description LLDB
description_level LLDB
Résultat bool

GetExecutable() public méthode

public GetExecutable ( ) : LLDB.FileSpec
Résultat LLDB.FileSpec

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetInstructions() public méthode

public GetInstructions ( LLDB base_addr, global buf, uint size ) : LLDB.InstructionList
base_addr LLDB
buf global
size uint
Résultat LLDB.InstructionList

GetInstructions() public méthode

public GetInstructions ( ulong base_addr, global buf, uint size ) : LLDB.InstructionList
base_addr ulong
buf global
size uint
Résultat LLDB.InstructionList

GetInstructionsWithFlavor() public méthode

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

GetInstructionsWithFlavor() public méthode

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

GetLaunchInfo() public méthode

public GetLaunchInfo ( ) : LLDB.LaunchInfo
Résultat LLDB.LaunchInfo

GetModuleAtIndex() public méthode

public GetModuleAtIndex ( uint idx ) : LLDB.Module
idx uint
Résultat LLDB.Module

GetModuleAtIndexFromEvent() public static méthode

public static GetModuleAtIndexFromEvent ( uint idx, LLDB @event ) : LLDB.Module
idx uint
@event LLDB
Résultat LLDB.Module

GetNumModulesFromEvent() public static méthode

public static GetNumModulesFromEvent ( LLDB @event ) : uint
@event LLDB
Résultat uint

GetPlatform() public méthode

Return the platform object associated with the target.

After return, the platform object should be checked for

validity.

public GetPlatform ( ) : LLDB.Platform
Résultat LLDB.Platform

GetProcess() public méthode

public GetProcess ( ) : LLDB.Process
Résultat LLDB.Process

GetSourceManager() public méthode

public GetSourceManager ( ) : LLDB.SourceManager
Résultat LLDB.SourceManager

GetTargetFromEvent() public static méthode

public static GetTargetFromEvent ( LLDB @event ) : LLDB.Target
@event LLDB
Résultat LLDB.Target

GetWatchpointAtIndex() public méthode

public GetWatchpointAtIndex ( uint idx ) : LLDB.Watchpoint
idx uint
Résultat LLDB.Watchpoint

Install() public méthode

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
Résultat LLDB.Error

IsValid() public méthode

public IsValid ( ) : bool
Résultat bool

Launch() public méthode

public Launch ( LLDB launch_info, LLDB error ) : LLDB.Process
launch_info LLDB
error LLDB
Résultat LLDB.Process

Launch() public méthode

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. ///
Résultat LLDB.Process

LaunchSimple() public méthode

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. ///
Résultat LLDB.Process

LoadCore() public méthode

public LoadCore ( string core_file ) : LLDB.Process
core_file string
Résultat LLDB.Process

ReadInstructions() public méthode

public ReadInstructions ( LLDB base_addr, uint count ) : LLDB.InstructionList
base_addr LLDB
count uint
Résultat LLDB.InstructionList

ReadInstructions() public méthode

public ReadInstructions ( LLDB base_addr, uint count, string flavor_string ) : LLDB.InstructionList
base_addr LLDB
count uint
flavor_string string
Résultat LLDB.InstructionList

ReadMemory() public méthode

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. ///
Résultat uint

RemoveModule() public méthode

public RemoveModule ( LLDB module ) : bool
module LLDB
Résultat bool

ResolveFileAddress() public méthode

Resolve a current file address into a section offset address.

public ResolveFileAddress ( ulong file_addr ) : LLDB.Address
file_addr ulong
Résultat LLDB.Address

ResolveLoadAddress() public méthode

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. ///
Résultat LLDB.Address

ResolvePastLoadAddress() public méthode

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. ///
Résultat LLDB.Address

ResolveSymbolContextForAddress() public méthode

public ResolveSymbolContextForAddress ( LLDB addr, uint resolve_scope ) : LLDB.SymbolContext
addr LLDB
resolve_scope uint
Résultat LLDB.SymbolContext

SetModuleLoadAddress() public méthode

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). ///
Résultat LLDB.Error

SetSectionLoadAddress() public méthode

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. ///
Résultat LLDB.Error

Target() public méthode

public Target ( ) : System
Résultat System

Target() public méthode

public Target ( LLDB rhs ) : System
rhs LLDB
Résultat System

Target() protected méthode

protected Target ( void native, bool skipVTables = false ) : System
native void
skipVTables bool
Résultat System

WatchAddress() public méthode

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

__CreateInstance() public static méthode

public static __CreateInstance ( Target native, bool skipVTables = false ) : Target
native Target
skipVTables bool
Résultat Target

__CreateInstance() public static méthode

public static __CreateInstance ( global native, bool skipVTables = false ) : Target
native global
skipVTables bool
Résultat Target

operator() public static méthode

public static operator ( ) : bool
Résultat bool

Property Details

NativeToManagedMap public_oe static_oe property

public static System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap
Résultat Target>.System.Collections.Concurrent.ConcurrentDictionary

__OriginalVTables protected_oe property

protected void*[] __OriginalVTables
Résultat void*[]

__PointerAdjustment protected_oe property

protected int __PointerAdjustment
Résultat int

__ownsNativeInstance protected_oe property

protected bool __ownsNativeInstance
Résultat bool