C# Class LLDB.LaunchInfo

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

Public Properties

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

Protected Properties

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

Public Methods

Method Description
AddCloseFileAction ( int fd ) : bool
AddDuplicateFileAction ( int fd, int dup_fd ) : bool
AddOpenFileAction ( int fd, string path, bool read, bool write ) : bool
AddSuppressFileAction ( int fd, bool read, bool write ) : bool
Clear ( ) : void
Dispose ( ) : void
GetArgumentAtIndex ( uint idx ) : string
GetEnvironmentEntryAtIndex ( uint idx ) : string
GetExecutableFile ( ) : LLDB.FileSpec
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
LaunchInfo ( LLDB _0 ) : System
LaunchInfo ( sbyte argv ) : System
SetArguments ( sbyte argv, bool append ) : void
SetEnvironmentEntries ( sbyte envp, bool append ) : void
SetExecutableFile ( LLDB exe_file, bool add_as_first_arg ) : void

Set the executable file that will be used to launch the process and

optionally set it as the first argument in the argument vector.

This only needs to be specified if clients wish to carefully control

the exact path will be used to launch a binary. If you create a

target with a symlink, that symlink will get resolved in the target

and the resolved path will get used to launch the process. Calling

this function can help you still launch your process using the

path of your choice.

If this function is not called prior to launching with

SBTarget::Launch(...), the target will use the resolved executable

path that was used to create the target.

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

Protected Methods

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

Private Methods

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

Method Details

AddCloseFileAction() public method

public AddCloseFileAction ( int fd ) : bool
fd int
return bool

AddDuplicateFileAction() public method

public AddDuplicateFileAction ( int fd, int dup_fd ) : bool
fd int
dup_fd int
return bool

AddOpenFileAction() public method

public AddOpenFileAction ( int fd, string path, bool read, bool write ) : bool
fd int
path string
read bool
write bool
return bool

AddSuppressFileAction() public method

public AddSuppressFileAction ( int fd, bool read, bool write ) : bool
fd int
read bool
write bool
return bool

Clear() public method

public Clear ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

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

GetArgumentAtIndex() public method

public GetArgumentAtIndex ( uint idx ) : string
idx uint
return string

GetEnvironmentEntryAtIndex() public method

public GetEnvironmentEntryAtIndex ( uint idx ) : string
idx uint
return string

GetExecutableFile() public method

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

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

LaunchInfo() public method

public LaunchInfo ( LLDB _0 ) : System
_0 LLDB
return System

LaunchInfo() public method

public LaunchInfo ( sbyte argv ) : System
argv sbyte
return System

LaunchInfo() protected method

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

SetArguments() public method

public SetArguments ( sbyte argv, bool append ) : void
argv sbyte
append bool
return void

SetEnvironmentEntries() public method

public SetEnvironmentEntries ( sbyte envp, bool append ) : void
envp sbyte
append bool
return void

SetExecutableFile() public method

Set the executable file that will be used to launch the process and

optionally set it as the first argument in the argument vector.

This only needs to be specified if clients wish to carefully control

the exact path will be used to launch a binary. If you create a

target with a symlink, that symlink will get resolved in the target

and the resolved path will get used to launch the process. Calling

this function can help you still launch your process using the

path of your choice.

If this function is not called prior to launching with

SBTarget::Launch(...), the target will use the resolved executable

path that was used to create the target.

public SetExecutableFile ( LLDB exe_file, bool add_as_first_arg ) : void
exe_file LLDB /// The override path to use when launching the executable. ///
add_as_first_arg bool /// If true, then the path will be inserted into the argument vector /// prior to launching. Otherwise the argument vector will be left /// alone. ///
return void

UserIDIsValid() public method

public UserIDIsValid ( ) : bool
return bool

__CreateInstance() public static method

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

__CreateInstance() public static method

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

Property Details

NativeToManagedMap public static property

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