32 uint32_t option_idx, llvm::StringRef option_arg,
35 const int short_option = g_process_launch_options[option_idx].short_option;
39 switch (short_option) {
44 target_sp->CreateBreakpointAtUserEntry(
error);
49 if (action.
Open(STDIN_FILENO,
FileSpec(option_arg),
true,
false))
57 if (action.
Open(STDOUT_FILENO,
FileSpec(option_arg),
false,
true))
65 if (action.
Open(STDERR_FILENO,
FileSpec(option_arg),
false,
true))
78 if (action.
Open(STDIN_FILENO, dev_null,
true,
false))
80 if (action.
Open(STDOUT_FILENO, dev_null,
false,
true))
82 if (action.
Open(STDERR_FILENO, dev_null,
false,
true))
97 target_sp ? target_sp->GetPlatform() :
PlatformSP();
105 const bool disable_aslr_arg =
111 "Invalid boolean value for disable-aslr option: '%s'",
112 option_arg.empty() ?
"<null>" : option_arg.str().c_str());
119 const bool expand_args =
125 "Invalid boolean value for shell-expand-args option: '%s'",
126 option_arg.empty() ?
"<null>" : option_arg.str().c_str());
131 if (!option_arg.empty())
143 "unrecognized short option character '%c'", short_option);
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
const lldb::TargetSP & GetTargetSP() const
Get accessor to get the target shared pointer.