C# Class LLDB.Process

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

Méthodes publiques

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

Protected Properties

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

Méthodes publiques

Méthode Description
AppendEventStateReport ( LLDB @event, LLDB result ) : void
Clear ( ) : void
Continue ( ) : LLDB.Error
CreateOSPluginThread ( ulong tid, ulong context ) : LLDB.Thread
Destroy ( ) : LLDB.Error
Detach ( ) : LLDB.Error
Detach ( bool keep_stopped ) : LLDB.Error
Dispose ( ) : void
EventIsProcessEvent ( LLDB @event ) : bool
GetAsyncProfileData ( sbyte dst, uint dst_len ) : uint
GetBroadcaster ( ) : LLDB.Broadcaster
GetDescription ( LLDB description ) : bool
GetExtendedBacktraceTypeAtIndex ( uint idx ) : string

Return the name of one of the thread-origin extended backtrace

methods.

GetHistoryThreads ( ulong addr ) : LLDB.ThreadCollection
GetInterruptedFromEvent ( LLDB @event ) : bool
GetNumRestartedReasonsFromEvent ( LLDB @event ) : uint
GetNumSupportedHardwareWatchpoints ( LLDB error ) : uint
GetProcessFromEvent ( LLDB @event ) : LLDB.Process
GetQueueAtIndex ( uint index ) : LLDB.Queue
GetRestartedFromEvent ( LLDB @event ) : bool
GetRestartedReasonAtIndexFromEvent ( LLDB @event, uint idx ) : string
GetSTDERR ( sbyte dst, uint dst_len ) : uint
GetSTDOUT ( sbyte dst, uint dst_len ) : uint
GetSelectedThread ( ) : LLDB.Thread
GetStateFromEvent ( LLDB @event ) : LLDB.StateType
GetStopEventForStopID ( uint stop_id ) : LLDB.Event

Note that it wasn't fully implemented and tracks only the stop

event for the last natural stop ID.

GetStopID ( bool include_expression_stops ) : uint
GetTarget ( ) : LLDB.Target
GetThreadAtIndex ( uint index ) : LLDB.Thread
GetThreadByID ( ulong sb_thread_id ) : LLDB.Thread
GetThreadByIndexID ( uint index_id ) : LLDB.Thread
GetUnixSignals ( ) : LLDB.UnixSignals
IsInstrumentationRuntimePresent ( LLDB type ) : bool
IsValid ( ) : bool
Kill ( ) : LLDB.Error
LoadImage ( LLDB remote_image_spec, LLDB &error ) : uint

Load a shared library into this process.

LoadImage ( LLDB local_image_spec, LLDB remote_image_spec, LLDB &error ) : uint

Load a shared library into this process.

Process ( ) : System
Process ( LLDB rhs ) : System
PutSTDIN ( string src, uint src_len ) : uint
ReadCStringFromMemory ( ulong addr, global buf, uint size, LLDB error ) : uint
ReadMemory ( ulong addr, global buf, uint size, LLDB error ) : uint
ReadPointerFromMemory ( ulong addr, LLDB error ) : ulong
ReadUnsignedFromMemory ( ulong addr, uint byte_size, LLDB error ) : ulong
RemoteAttachToProcessWithID ( ulong pid, LLDB error ) : bool

Remote connection related functions. These will fail if the

process is not in eStateConnected. They are intended for use

when connecting to an externally managed debugserver instance.

RemoteLaunch ( 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 ) : bool
ReportEventState ( LLDB @event, global @out ) : void
SaveCore ( string file_name ) : LLDB.Error
SendAsyncInterrupt ( ) : void
SendEventData ( string data ) : LLDB.Error
SetSelectedThread ( LLDB thread ) : bool
SetSelectedThreadByID ( ulong tid ) : bool
SetSelectedThreadByIndexID ( uint index_id ) : bool
Signal ( int signal ) : LLDB.Error
Stop ( ) : LLDB.Error
UnloadImage ( uint image_token ) : LLDB.Error
WriteMemory ( ulong addr, global buf, uint size, LLDB error ) : uint
__CreateInstance ( Process native, bool skipVTables = false ) : Process
__CreateInstance ( global native, bool skipVTables = false ) : Process

Méthodes protégées

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

Private Methods

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

Method Details

AppendEventStateReport() public méthode

public AppendEventStateReport ( LLDB @event, LLDB result ) : void
@event LLDB
result LLDB
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

Continue() public méthode

public Continue ( ) : LLDB.Error
Résultat LLDB.Error

CreateOSPluginThread() public méthode

public CreateOSPluginThread ( ulong tid, ulong context ) : LLDB.Thread
tid ulong
context ulong
Résultat LLDB.Thread

Destroy() public méthode

public Destroy ( ) : LLDB.Error
Résultat LLDB.Error

Detach() public méthode

public Detach ( ) : LLDB.Error
Résultat LLDB.Error

Detach() public méthode

public Detach ( bool keep_stopped ) : LLDB.Error
keep_stopped bool
Résultat LLDB.Error

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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

EventIsProcessEvent() public static méthode

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

GetAsyncProfileData() public méthode

public GetAsyncProfileData ( sbyte dst, uint dst_len ) : uint
dst sbyte
dst_len uint
Résultat uint

GetBroadcaster() public méthode

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

GetDescription() public méthode

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

GetExtendedBacktraceTypeAtIndex() public méthode

Return the name of one of the thread-origin extended backtrace

methods.

public GetExtendedBacktraceTypeAtIndex ( uint idx ) : string
idx uint /// The index of the name to return. They will be returned in /// the order that the user will most likely want to see them. /// e.g. if the type at index 0 is not available for a thread, /// see if the type at index 1 provides an extended backtrace. ///
Résultat string

GetHistoryThreads() public méthode

public GetHistoryThreads ( ulong addr ) : LLDB.ThreadCollection
addr ulong
Résultat LLDB.ThreadCollection

GetInterruptedFromEvent() public static méthode

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

GetNumRestartedReasonsFromEvent() public static méthode

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

GetNumSupportedHardwareWatchpoints() public méthode

public GetNumSupportedHardwareWatchpoints ( LLDB error ) : uint
error LLDB
Résultat uint

GetProcessFromEvent() public static méthode

public static GetProcessFromEvent ( LLDB @event ) : LLDB.Process
@event LLDB
Résultat LLDB.Process

GetQueueAtIndex() public méthode

public GetQueueAtIndex ( uint index ) : LLDB.Queue
index uint
Résultat LLDB.Queue

GetRestartedFromEvent() public static méthode

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

GetRestartedReasonAtIndexFromEvent() public static méthode

public static GetRestartedReasonAtIndexFromEvent ( LLDB @event, uint idx ) : string
@event LLDB
idx uint
Résultat string

GetSTDERR() public méthode

public GetSTDERR ( sbyte dst, uint dst_len ) : uint
dst sbyte
dst_len uint
Résultat uint

GetSTDOUT() public méthode

public GetSTDOUT ( sbyte dst, uint dst_len ) : uint
dst sbyte
dst_len uint
Résultat uint

GetSelectedThread() public méthode

public GetSelectedThread ( ) : LLDB.Thread
Résultat LLDB.Thread

GetStateFromEvent() public static méthode

public static GetStateFromEvent ( LLDB @event ) : LLDB.StateType
@event LLDB
Résultat LLDB.StateType

GetStopEventForStopID() public méthode

Note that it wasn't fully implemented and tracks only the stop

event for the last natural stop ID.

public GetStopEventForStopID ( uint stop_id ) : LLDB.Event
stop_id uint /// The ID of the stop event to return. ///
Résultat LLDB.Event

GetStopID() public méthode

public GetStopID ( bool include_expression_stops ) : uint
include_expression_stops bool
Résultat uint

GetTarget() public méthode

public GetTarget ( ) : LLDB.Target
Résultat LLDB.Target

GetThreadAtIndex() public méthode

public GetThreadAtIndex ( uint index ) : LLDB.Thread
index uint
Résultat LLDB.Thread

GetThreadByID() public méthode

public GetThreadByID ( ulong sb_thread_id ) : LLDB.Thread
sb_thread_id ulong
Résultat LLDB.Thread

GetThreadByIndexID() public méthode

public GetThreadByIndexID ( uint index_id ) : LLDB.Thread
index_id uint
Résultat LLDB.Thread

GetUnixSignals() public méthode

public GetUnixSignals ( ) : LLDB.UnixSignals
Résultat LLDB.UnixSignals

IsInstrumentationRuntimePresent() public méthode

public IsInstrumentationRuntimePresent ( LLDB type ) : bool
type LLDB
Résultat bool

IsValid() public méthode

public IsValid ( ) : bool
Résultat bool

Kill() public méthode

public Kill ( ) : LLDB.Error
Résultat LLDB.Error

LoadImage() public méthode

Load a shared library into this process.

public LoadImage ( LLDB remote_image_spec, LLDB &error ) : uint
remote_image_spec LLDB /// The path for the shared library on the target what you want /// to load. ///
error LLDB /// An error object that gets filled in with any errors that /// might occur when trying to load the shared library. ///
Résultat uint

LoadImage() public méthode

Load a shared library into this process.

public LoadImage ( LLDB local_image_spec, LLDB remote_image_spec, LLDB &error ) : uint
local_image_spec LLDB /// The file spec that points to the shared library that you /// want to load if the library is located on the host. The /// library will be copied over to the location specified by /// remote_image_spec or into the current working directory with /// the same filename if the remote_image_spec isn't specified. ///
remote_image_spec LLDB /// If local_image_spec is specified then the location where the /// library should be copied over from the host. If /// local_image_spec isn't specified, then the path for the /// shared library on the target what you want to load. ///
error LLDB /// An error object that gets filled in with any errors that /// might occur when trying to load the shared library. ///
Résultat uint

Process() public méthode

public Process ( ) : System
Résultat System

Process() public méthode

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

Process() protected méthode

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

PutSTDIN() public méthode

public PutSTDIN ( string src, uint src_len ) : uint
src string
src_len uint
Résultat uint

ReadCStringFromMemory() public méthode

public ReadCStringFromMemory ( ulong addr, global buf, uint size, LLDB error ) : uint
addr ulong
buf global
size uint
error LLDB
Résultat uint

ReadMemory() public méthode

public ReadMemory ( ulong addr, global buf, uint size, LLDB error ) : uint
addr ulong
buf global
size uint
error LLDB
Résultat uint

ReadPointerFromMemory() public méthode

public ReadPointerFromMemory ( ulong addr, LLDB error ) : ulong
addr ulong
error LLDB
Résultat ulong

ReadUnsignedFromMemory() public méthode

public ReadUnsignedFromMemory ( ulong addr, uint byte_size, LLDB error ) : ulong
addr ulong
byte_size uint
error LLDB
Résultat ulong

RemoteAttachToProcessWithID() public méthode

Remote connection related functions. These will fail if the

process is not in eStateConnected. They are intended for use

when connecting to an externally managed debugserver instance.

public RemoteAttachToProcessWithID ( ulong pid, LLDB error ) : bool
pid ulong
error LLDB
Résultat bool

RemoteLaunch() public méthode

public RemoteLaunch ( 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 ) : bool
argv sbyte
envp sbyte
stdin_path string
stdout_path string
stderr_path string
working_directory string
launch_flags uint
stop_at_entry bool
error LLDB
Résultat bool

ReportEventState() public méthode

public ReportEventState ( LLDB @event, global @out ) : void
@event LLDB
@out global
Résultat void

SaveCore() public méthode

public SaveCore ( string file_name ) : LLDB.Error
file_name string
Résultat LLDB.Error

SendAsyncInterrupt() public méthode

public SendAsyncInterrupt ( ) : void
Résultat void

SendEventData() public méthode

public SendEventData ( string data ) : LLDB.Error
data string
Résultat LLDB.Error

SetSelectedThread() public méthode

public SetSelectedThread ( LLDB thread ) : bool
thread LLDB
Résultat bool

SetSelectedThreadByID() public méthode

public SetSelectedThreadByID ( ulong tid ) : bool
tid ulong
Résultat bool

SetSelectedThreadByIndexID() public méthode

public SetSelectedThreadByIndexID ( uint index_id ) : bool
index_id uint
Résultat bool

Signal() public méthode

public Signal ( int signal ) : LLDB.Error
signal int
Résultat LLDB.Error

Stop() public méthode

public Stop ( ) : LLDB.Error
Résultat LLDB.Error

UnloadImage() public méthode

public UnloadImage ( uint image_token ) : LLDB.Error
image_token uint
Résultat LLDB.Error

WriteMemory() public méthode

public WriteMemory ( ulong addr, global buf, uint size, LLDB error ) : uint
addr ulong
buf global
size uint
error LLDB
Résultat uint

__CreateInstance() public static méthode

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

__CreateInstance() public static méthode

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

Property Details

NativeToManagedMap public_oe static_oe property

public static System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap
Résultat Process>.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