C# Class LLDB.AttachInfo

Inheritance: IDisposable
显示文件 Open project: tritao/LLDBSharp Class Usage Examples

Public Properties

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

Protected Properties

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

Public Methods

Method Description
AttachInfo ( ) : System
AttachInfo ( LLDB rhs ) : System
AttachInfo ( string path, bool wait_for ) : System

Attach to a process by name.

This function implies that a future call to SBTarget::Attach(...)

will be synchronous.

AttachInfo ( string path, bool wait_for, bool async ) : System

Attach to a process by name.

Future calls to SBTarget::Attach(...) will be synchronous or

asynchronous depending on the

argument.

AttachInfo ( ulong pid ) : System
Dispose ( ) : void
EffectiveGroupIDIsValid ( ) : bool
EffectiveUserIDIsValid ( ) : bool
GetListener ( ) : LLDB.Listener

Get the listener that will be used to receive process events.

If no listener has been set via a call to

SBLaunchInfo::SetListener(), then an invalid SBListener will be

returned (SBListener::IsValid() will return false). If a listener

has been set, then the valid listener object will be returned.

GroupIDIsValid ( ) : bool
ParentProcessIDIsValid ( ) : bool
SetExecutable ( LLDB exe_file ) : void
SetExecutable ( string path ) : void
SetWaitForLaunch ( bool b, bool async ) : void

Set attach by process name settings.

Designed to be used after a call to SBAttachInfo::SetExecutable().

Future calls to SBTarget::Attach(...) will be synchronous or

asynchronous depending on the

argument.

UserIDIsValid ( ) : bool
__CreateInstance ( AttachInfo native, bool skipVTables = false ) : AttachInfo
__CreateInstance ( global native, bool skipVTables = false ) : AttachInfo

Protected Methods

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

Private Methods

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

Method Details

AttachInfo() public method

public AttachInfo ( ) : System
return System

AttachInfo() public method

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

AttachInfo() public method

Attach to a process by name.

This function implies that a future call to SBTarget::Attach(...)

will be synchronous.

public AttachInfo ( string path, bool wait_for ) : System
path string /// A full or partial name for the process to attach to. ///
wait_for bool /// If /// attach to an existing process whose name matches. /// If /// then wait for the next process whose name matches. ///
return System

AttachInfo() public method

Attach to a process by name.

Future calls to SBTarget::Attach(...) will be synchronous or

asynchronous depending on the

argument.

public AttachInfo ( string path, bool wait_for, bool async ) : System
path string /// A full or partial name for the process to attach to. ///
wait_for bool /// If /// attach to an existing process whose name matches. /// If /// then wait for the next process whose name matches. ///
async bool /// If /// then the SBTarget::Attach(...) call will be a /// synchronous call with no way to cancel the attach in /// progress. /// If /// then the SBTarget::Attach(...) function will /// return immediately and clients are expected to wait for a /// process eStateStopped event if a suitable process is /// eventually found. If the client wants to cancel the event, /// SBProcess::Stop() can be called and an eStateExited process /// event will be delivered. ///
return System

AttachInfo() public method

public AttachInfo ( ulong pid ) : System
pid ulong
return System

AttachInfo() protected method

protected AttachInfo ( 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

EffectiveGroupIDIsValid() public method

public EffectiveGroupIDIsValid ( ) : bool
return bool

EffectiveUserIDIsValid() public method

public EffectiveUserIDIsValid ( ) : bool
return bool

GetListener() public method

Get the listener that will be used to receive process events.

If no listener has been set via a call to

SBLaunchInfo::SetListener(), then an invalid SBListener will be

returned (SBListener::IsValid() will return false). If a listener

has been set, then the valid listener object will be returned.

public GetListener ( ) : LLDB.Listener
return LLDB.Listener

GroupIDIsValid() public method

public GroupIDIsValid ( ) : bool
return bool

ParentProcessIDIsValid() public method

public ParentProcessIDIsValid ( ) : bool
return bool

SetExecutable() public method

public SetExecutable ( LLDB exe_file ) : void
exe_file LLDB
return void

SetExecutable() public method

public SetExecutable ( string path ) : void
path string
return void

SetWaitForLaunch() public method

Set attach by process name settings.

Designed to be used after a call to SBAttachInfo::SetExecutable().

Future calls to SBTarget::Attach(...) will be synchronous or

asynchronous depending on the

argument.

public SetWaitForLaunch ( bool b, bool async ) : void
b bool
async bool /// If /// then the SBTarget::Attach(...) call will be a /// synchronous call with no way to cancel the attach in /// progress. /// If /// then the SBTarget::Attach(...) function will /// return immediately and clients are expected to wait for a /// process eStateStopped event if a suitable process is /// eventually found. If the client wants to cancel the event, /// SBProcess::Stop() can be called and an eStateExited process /// event will be delivered. ///
return void

UserIDIsValid() public method

public UserIDIsValid ( ) : bool
return bool

__CreateInstance() public static method

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

__CreateInstance() public static method

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

Property Details

NativeToManagedMap public_oe static_oe property

public static System.Collections.Concurrent.ConcurrentDictionary NativeToManagedMap
return AttachInfo>.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