Struct lldb::SBLaunchInfo
[−]
[src]
pub struct SBLaunchInfo { pub raw: SBLaunchInfoRef, }
Configuration for launching a process.
See SBTarget::launch
.
Fields
raw: SBLaunchInfoRef
The underlying raw SBLaunchInfoRef
.
Methods
impl SBLaunchInfo
[src]
fn new() -> SBLaunchInfo
[src]
Construct a new SBLaunchInfo
.
fn wrap(raw: SBLaunchInfoRef) -> SBLaunchInfo
[src]
Construct a new SBLaunchInfo
.
fn process_id(&self) -> lldb_pid_t
[src]
fn user_id(&self) -> u32
[src]
fn set_user_id(&self, user_id: u32)
[src]
fn user_id_is_valid(&self) -> bool
[src]
fn group_id(&self) -> u32
[src]
fn set_group_id(&self, group_id: u32)
[src]
fn group_id_is_valid(&self) -> bool
[src]
fn executable_file(&self) -> Option<SBFileSpec>
[src]
fn set_executable_file(&self, filespec: &SBFileSpec, add_as_first_arg: bool)
[src]
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.
exe_file
is the override path to use when launching the executable.
If add_as_first_arg
is true, then the path will be inserted into
the argument vector prior to launching. Otherwise the argument
vector will be left alone.
fn listener(&self) -> Option<SBListener>
[src]
Get the listener that will be used to receive process events.
If no listener has been set via a call to
SBLaunchInfo::set_listener()
, then None
will be returned.
If a listener has been set, then the listener object will be returned.
fn set_listener(&self, listener: &SBListener)
[src]
Set the listener that will be used to receive process events.
By default the SBDebugger
, which has a listener,
that the SBTarget
belongs to will listen for the
process events. Calling this function allows a different
listener to be used to listen for process events.
fn launch_flags(&self) -> LaunchFlags
[src]
fn set_launch_flags(&self, launch_flags: LaunchFlags)
[src]
fn process_plugin_name(&self) -> Option<&str>
[src]
fn set_process_plugin_name(&self, plugin: &str)
[src]
fn shell(&self) -> Option<&str>
[src]
fn set_shell(&self, shell: &str)
[src]
fn shell_expand_arguments(&self) -> bool
[src]
fn set_shell_expand_arguments(&self, expand: bool)
[src]
fn resume_count(&self) -> u32
[src]
fn set_resume_count(&self, resume_count: u32)
[src]
fn add_close_file_action(&self, fd: i32) -> bool
[src]
fn add_duplicate_file_action(&self, fd: i32, dup_fd: i32) -> bool
[src]
fn add_open_file_action(
&self,
fd: i32,
path: &str,
read: bool,
write: bool
) -> bool
[src]
&self,
fd: i32,
path: &str,
read: bool,
write: bool
) -> bool
fn add_suppress_file_action(&self, fd: i32, read: bool, write: bool) -> bool
[src]
fn launch_event_data(&self) -> Option<&str>
[src]
fn set_launch_event_data(&self, data: &str)
[src]
fn detach_on_error(&self) -> bool
[src]
fn set_detach_on_error(&self, detach: bool)
[src]
Trait Implementations
impl Debug for SBLaunchInfo
[src]
impl Default for SBLaunchInfo
[src]
fn default() -> SBLaunchInfo
[src]
Returns the "default value" for a type. Read more