30#include "llvm/ADT/SmallString.h"
38 if (permissions.size() != 9)
40 bool user_r, user_w, user_x, group_r, group_w, group_x, world_r, world_w,
43 user_r = (permissions[0] ==
'r');
44 user_w = (permissions[1] ==
'w');
45 user_x = (permissions[2] ==
'x');
47 group_r = (permissions[3] ==
'r');
48 group_w = (permissions[4] ==
'w');
49 group_x = (permissions[5] ==
'x');
51 world_r = (permissions[6] ==
'r');
52 world_w = (permissions[7] ==
'w');
53 world_x = (permissions[8] ==
'x');
55 mode_t user, group, world;
56 user = (user_r ? 4 : 0) | (user_w ? 2 : 0) | (user_x ? 1 : 0);
57 group = (group_r ? 4 : 0) | (group_w ? 2 : 0) | (group_x ? 1 : 0);
58 world = (world_r ? 4 : 0) | (world_w ? 2 : 0) | (world_x ? 1 : 0);
60 return user | group | world;
63#define LLDB_OPTIONS_permissions
64#include "CommandOptions.inc"
76 char short_option = (char)
GetDefinitions()[option_idx].short_option;
77 switch (short_option) {
82 "invalid value for permissions: %s", option_arg.str().c_str());
88 if (perms == (mode_t)-1)
90 "invalid value for permissions: %s", option_arg.str().c_str());
122 llvm_unreachable(
"Unimplemented option");
133 return llvm::ArrayRef(g_permissions_options);
150 "Create a platform if needed and select it as the "
152 "platform select <platform-name>", 0),
174 if (platform_name && platform_name[0]) {
175 const bool select =
true;
194 "platform create takes a platform name as an argument\n");
207 "List all platforms that are available.", nullptr,
215 ostrm.
Printf(
"Available platforms:\n");
218 ostrm.
Format(
"{0}: {1}\n", host_platform_sp->GetPluginName(),
219 host_platform_sp->GetDescription());
222 for (idx = 0;
true; ++idx) {
223 llvm::StringRef plugin_name =
225 if (plugin_name.empty())
227 llvm::StringRef plugin_desc =
229 ostrm.
Format(
"{0}: {1}\n", plugin_name, plugin_desc);
233 result.
AppendError(
"no platforms are available\n");
244 "Display status for the current platform.", nullptr,
260 platform_sp->GetStatus(ostrm);
263 result.
AppendError(
"no platform is currently selected\n");
273 interpreter,
"platform connect",
274 "Select the current platform by providing a connection URL.",
275 "platform connect <connect-url>", 0) {
286 GetDebugger().GetPlatformList().GetSelectedPlatform());
289 if (
error.Success()) {
290 platform_sp->GetStatus(ostrm);
301 result.
AppendError(
"no platform is currently selected\n");
307 GetDebugger().GetPlatformList().GetSelectedPlatform());
310 m_platform_options = platform_sp->GetConnectionOptions(
m_interpreter);
311 if (m_platform_options !=
nullptr && !m_platform_options->
m_did_finalize)
314 return m_platform_options;
323 "Disconnect from the current platform.",
324 "platform disconnect", 0) {}
331 GetDebugger().GetPlatformList().GetSelectedPlatform());
336 if (platform_sp->IsConnected()) {
339 const char *hostname_cstr = platform_sp->GetHostname();
340 std::string hostname;
342 hostname.assign(hostname_cstr);
344 error = platform_sp->DisconnectRemote();
345 if (
error.Success()) {
347 if (hostname.empty())
348 ostrm.
Format(
"Disconnected from \"{0}\"\n",
349 platform_sp->GetPluginName());
351 ostrm.
Printf(
"Disconnected from \"%s\"\n", hostname.c_str());
359 platform_sp->GetPluginName());
364 "\"platform disconnect\" doesn't take any arguments");
367 result.
AppendError(
"no platform is currently selected");
377 "Set settings for the current target's platform.",
378 "platform settings", 0),
381 "The working directory for the platform.") {
390 GetDebugger().GetPlatformList().GetSelectedPlatform());
393 platform_sp->SetWorkingDirectory(
397 result.
AppendError(
"no platform is currently selected");
416 "Make a new directory on the remote end.", nullptr,
425 GetDebugger().GetPlatformList().GetSelectedPlatform());
427 std::string cmd_line;
432 if (options_permissions)
435 mode = lldb::eFilePermissionsUserRWX | lldb::eFilePermissionsGroupRWX |
436 lldb::eFilePermissionsWorldRX;
438 if (
error.Success()) {
444 result.
AppendError(
"no platform currently selected\n");
465 "Open a file on the remote end.", nullptr, 0) {
473 GetDebugger().GetPlatformList().GetSelectedPlatform());
476 std::string cmd_line;
481 if (options_permissions)
484 perms = lldb::eFilePermissionsUserRW | lldb::eFilePermissionsGroupRW |
485 lldb::eFilePermissionsWorldRead;
490 if (
error.Success()) {
497 result.
AppendError(
"no platform currently selected\n");
518 "Close a file on the remote end.", nullptr, 0) {
526 GetDebugger().GetPlatformList().GetSelectedPlatform());
528 std::string cmd_line;
531 if (!llvm::to_integer(cmd_line, fd)) {
537 bool success = platform_sp->CloseFile(fd,
error);
545 result.
AppendError(
"no platform currently selected\n");
552#define LLDB_OPTIONS_platform_fread
553#include "CommandOptions.inc"
559 "Read data from a file on the remote end.", nullptr,
568 GetDebugger().GetPlatformList().GetSelectedPlatform());
570 std::string cmd_line;
573 if (!llvm::to_integer(cmd_line, fd)) {
578 std::string buffer(
m_options.m_count, 0);
580 uint64_t retcode = platform_sp->ReadFile(
590 result.
AppendError(
"no platform currently selected\n");
608 switch (short_option) {
610 if (option_arg.getAsInteger(0,
m_offset))
612 option_arg.str().c_str());
615 if (option_arg.getAsInteger(0,
m_count))
617 option_arg.str().c_str());
620 llvm_unreachable(
"Unimplemented option");
632 return llvm::ArrayRef(g_platform_fread_options);
646#define LLDB_OPTIONS_platform_fwrite
647#include "CommandOptions.inc"
653 "Write data to a file on the remote end.", nullptr,
662 GetDebugger().GetPlatformList().GetSelectedPlatform());
664 std::string cmd_line;
668 if (!llvm::to_integer(cmd_line, fd)) {
683 result.
AppendError(
"no platform currently selected\n");
701 switch (short_option) {
703 if (option_arg.getAsInteger(0,
m_offset))
705 option_arg.str().c_str());
708 m_data.assign(std::string(option_arg));
711 llvm_unreachable(
"Unimplemented option");
723 return llvm::ArrayRef(g_platform_fwrite_options);
740 interpreter,
"platform file",
741 "Commands to access files on the current platform.",
742 "platform file [open|close|read|write] ...") {
767 interpreter,
"platform get-file",
768 "Transfer a file from the remote end to the local host.",
769 "platform get-file <remote-file-spec> <local-file-spec>", 0) {
773(lldb) platform get-file /the/remote/file/path /the/local/file/path
775 Transfer a file from the remote end with file path /the/remote/file/path to the local host.)");
785 arg1.push_back(file_arg_remote);
792 arg2.push_back(file_arg_host);
817 result.
AppendError(
"required arguments missing; specify both the "
818 "source and destination file paths");
823 GetDebugger().GetPlatformList().GetSelectedPlatform());
827 Status error = platform_sp->GetFile(FileSpec(remote_file_path),
828 FileSpec(local_file_path));
829 if (
error.Success()) {
831 "successfully get-file from {0} (remote) to {1} (host)",
832 remote_file_path, local_file_path);
839 result.
AppendError(
"no platform currently selected\n");
849 "Get the file size from the remote end.",
850 "platform get-size <remote-file-spec>", 0) {
854(lldb) platform get-size /the/remote/file/path
856 Get the file size from the remote end with path /the/remote/file/path.)");
866 result.
AppendError(
"required argument missing; specify the source file "
867 "path as the only argument");
872 GetDebugger().GetPlatformList().GetSelectedPlatform());
875 user_id_t size = platform_sp->GetFileSize(FileSpec(remote_file_path));
878 remote_file_path.c_str(), size);
882 remote_file_path.c_str());
885 result.
AppendError(
"no platform currently selected\n");
895 "Get the file permission bits from the remote end.",
896 "platform get-permissions <remote-file-spec>", 0) {
900(lldb) platform get-permissions /the/remote/file/path
902 Get the file permissions from the remote end with path /the/remote/file/path.)");
912 result.
AppendError(
"required argument missing; specify the source file "
913 "path as the only argument");
918 GetDebugger().GetPlatformList().GetSelectedPlatform());
921 uint32_t permissions;
922 Status error = platform_sp->GetFilePermissions(FileSpec(remote_file_path),
924 if (
error.Success()) {
926 "File permissions of {0} (remote): 0o{1}", remote_file_path,
927 llvm::format(
"%04o", permissions));
932 result.
AppendError(
"no platform currently selected\n");
942 "Check if the file exists on the remote end.",
943 "platform file-exists <remote-file-spec>", 0) {
947(lldb) platform file-exists /the/remote/file/path
949 Check if /the/remote/file/path exists on the remote end.)");
959 result.
AppendError(
"required argument missing; specify the source file "
960 "path as the only argument");
965 GetDebugger().GetPlatformList().GetSelectedPlatform());
968 bool exists = platform_sp->GetFileExists(FileSpec(remote_file_path));
970 remote_file_path.c_str(),
971 exists ?
"exists" :
"does not exist");
974 result.
AppendError(
"no platform currently selected\n");
984 interpreter,
"platform put-file",
985 "Transfer a file from this system to the remote end.",
986 "platform put-file <source> [<destination>]", 0) {
990(lldb) platform put-file /source/foo.txt /destination/bar.txt
992(lldb) platform put-file /source/foo.txt
994 Relative source file paths are resolved against lldb's local working directory.
996 Omitting the destination places the file in the platform working directory.)");
1023 FileSpec dst_fs(dst ? dst : src_fs.GetFilename().GetCString());
1026 GetDebugger().GetPlatformList().GetSelectedPlatform());
1028 Status error(platform_sp->PutFile(src_fs, dst_fs));
1029 if (
error.Success()) {
1035 result.
AppendError(
"no platform currently selected\n");
1045 "Launch a new process on a remote platform.",
1046 "platform process launch program",
1047 eCommandRequiresTarget | eCommandTryTargetAPILock),
1073 assert(target &&
"target guaranteed by eCommandRequiresTarget");
1085 llvm::SmallString<128> exe_path;
1086 m_options.launch_info.GetExecutableFile().GetPath(exe_path);
1087 if (!exe_path.empty())
1088 m_options.launch_info.GetArguments().AppendArgument(exe_path);
1093 m_options.launch_info.SetProcessPluginName(
"ScriptedProcess");
1096 m_options.launch_info.SetScriptedMetadata(metadata_sp);
1101 if (
m_options.launch_info.GetExecutableFile()) {
1104 m_options.launch_info.GetArguments().AppendArguments(args);
1108 const bool first_arg_is_executable =
true;
1109 m_options.launch_info.SetArguments(args, first_arg_is_executable);
1113 if (
m_options.launch_info.GetExecutableFile()) {
1118 Args target_run_args;
1120 m_options.launch_info.GetArguments().AppendArguments(target_run_args);
1123 ProcessSP process_sp(platform_sp->DebugProcess(
1126 if (!process_sp &&
error.Success()) {
1127 result.
AppendError(
"failed to launch or debug process");
1129 }
else if (!
error.Success()) {
1134 const bool synchronous_execution =
1136 auto launch_info =
m_options.launch_info;
1137 bool rebroadcast_first_stop =
1138 !synchronous_execution &&
1139 launch_info.GetFlags().Test(eLaunchFlagStopAtEntry);
1142 StateType state = process_sp->WaitForProcessToStop(
1143 std::nullopt, &first_stop_event_sp, rebroadcast_first_stop,
1144 launch_info.GetHijackListener());
1145 process_sp->RestoreProcessEvents();
1147 if (rebroadcast_first_stop) {
1148 assert(first_stop_event_sp);
1149 process_sp->BroadcastEvent(first_stop_event_sp);
1156 if (launch_info.GetFlags().Test(eLaunchFlagStopAtEntry))
1158 if (synchronous_execution) {
1164 error = process_sp->Resume();
1165 if (!
error.Success()) {
1167 "process resume at entry point failed: %s",
1174 "initial process state wasn't stopped: %s",
1179 if (process_sp && process_sp->IsAlive()) {
1186 result.
AppendError(
"'platform process launch' uses the current target "
1187 "file and arguments, or the executable and its "
1188 "arguments can be specified in this command");
1204#define LLDB_OPTIONS_platform_process_list
1205#include "CommandOptions.inc"
1211 "List processes on a remote platform by name, pid, "
1212 "or many other matching attributes.",
1213 "platform process list", 0) {}
1236 if (platform_sp->GetProcessInfo(pid, proc_info)) {
1239 proc_info.
DumpAsTableRow(ostrm, platform_sp->GetUserIDResolver(),
1248 const uint32_t matches =
1249 platform_sp->FindProcesses(
m_options.match_info, proc_infos);
1250 const char *match_desc =
nullptr;
1251 const char *match_name =
1252 m_options.match_info.GetProcessInfo().GetName();
1253 if (match_name && match_name[0]) {
1254 switch (
m_options.match_info.GetNameMatchType()) {
1258 match_desc =
"matched";
1261 match_desc =
"contained";
1264 match_desc =
"started with";
1267 match_desc =
"ended with";
1270 match_desc =
"matched the regular expression";
1278 "no processes were found that {0} \"{1}\" on the \"{2}\" "
1280 match_desc, match_name, platform_sp->GetName());
1283 "no processes were found on the \"{0}\" platform\n",
1284 platform_sp->GetName());
1287 "{0} matching process{1} found on \"{2}\"", matches,
1288 matches > 1 ?
"es were" :
" was", platform_sp->GetName());
1291 strm << llvm::formatv(
" whose name {0} \"{1}\"", match_desc,
1296 for (uint32_t i = 0; i < matches; ++i) {
1297 proc_infos[i].DumpAsTableRow(
1298 ostrm, platform_sp->GetUserIDResolver(),
m_options.show_args,
1319 bool success =
false;
1322 success = !option_arg.getAsInteger(0,
id);
1323 switch (short_option) {
1325 match_info.GetProcessInfo().SetProcessID(
id);
1328 "invalid process ID string: '%s'", option_arg.str().c_str());
1332 match_info.GetProcessInfo().SetParentProcessID(
id);
1335 "invalid parent process ID string: '%s'",
1336 option_arg.str().c_str());
1343 "invalid user ID string: '%s'", option_arg.str().c_str());
1347 match_info.GetProcessInfo().SetEffectiveUserID(success ?
id
1351 "invalid effective user ID string: '%s'",
1352 option_arg.str().c_str());
1359 "invalid group ID string: '%s'", option_arg.str().c_str());
1363 match_info.GetProcessInfo().SetEffectiveGroupID(success ?
id
1367 "invalid effective group ID string: '%s'",
1368 option_arg.str().c_str());
1375 target_sp ? target_sp->GetDebugger().shared_from_this()
1378 debugger_sp ? debugger_sp->GetPlatformList().GetSelectedPlatform()
1380 match_info.GetProcessInfo().GetArchitecture() =
1385 match_info.GetProcessInfo().GetExecutableFile().SetFile(
1386 option_arg, FileSpec::Style::native);
1391 match_info.GetProcessInfo().GetExecutableFile().SetFile(
1392 option_arg, FileSpec::Style::native);
1397 match_info.GetProcessInfo().GetExecutableFile().SetFile(
1398 option_arg, FileSpec::Style::native);
1403 match_info.GetProcessInfo().GetExecutableFile().SetFile(
1404 option_arg, FileSpec::Style::native);
1409 match_info.GetProcessInfo().GetExecutableFile().SetFile(
1410 option_arg, FileSpec::Style::native);
1427 llvm_unreachable(
"Unimplemented option");
1440 return llvm::ArrayRef(g_platform_process_list_options);
1458 interpreter,
"platform process info",
1459 "Get detailed information for one or more process by process ID.",
1460 "platform process info <pid> [<pid> <pid> ...]", 0) {
1482 if (platform_sp->IsConnected()) {
1484 for (
auto &entry : args.
entries()) {
1486 if (entry.ref().getAsInteger(0, pid)) {
1488 entry.ref().str().c_str());
1492 if (platform_sp->GetProcessInfo(pid, proc_info)) {
1493 ostrm.
Printf(
"Process information for process %" PRIu64
":\n",
1495 proc_info.
Dump(ostrm, platform_sp->GetUserIDResolver());
1497 ostrm.
Printf(
"error: no process information is available for "
1498 "process %" PRIu64
"\n",
1509 platform_sp->GetPluginName());
1513 result.
AppendError(
"one or more process id(s) must be specified");
1516 result.
AppendError(
"no platform is currently selected");
1521#define LLDB_OPTIONS_platform_process_attach
1522#include "CommandOptions.inc"
1528 "Attach to a process.",
1529 "platform process attach <cmd-options>"),
1541 GetDebugger().GetPlatformList().GetSelectedPlatform());
1545 m_options.attach_info.SetProcessPluginName(
"ScriptedProcess");
1548 m_options.attach_info.SetScriptedMetadata(metadata_sp);
1552 ProcessSP remote_process_sp = platform_sp->Attach(
1556 }
else if (!remote_process_sp) {
1557 result.
AppendError(
"could not attach: unknown reason");
1561 result.
AppendError(
"no platform is currently selected");
1578 "Commands to query, launch and attach to "
1579 "processes on the current platform.",
1580 "platform process [attach|launch|list] ...") {
1603#define LLDB_OPTIONS_platform_shell
1604#include "CommandOptions.inc"
1615 return llvm::ArrayRef(g_platform_shell_options);
1622 const char short_option = (char)
GetDefinitions()[option_idx].short_option;
1624 switch (short_option) {
1629 uint32_t timeout_sec;
1630 if (option_arg.getAsInteger(10, timeout_sec))
1632 "could not convert \"%s\" to a numeric value.",
1633 option_arg.str().c_str());
1635 m_timeout = std::chrono::seconds(timeout_sec);
1638 if (option_arg.empty()) {
1640 "missing shell interpreter path for option -i|--interpreter.");
1648 llvm_unreachable(
"Unimplemented option");
1667 "Run a shell command on the current platform.",
1668 "platform shell <shell-command>", 0) {
1679 m_options.NotifyOptionParsingStarting(&exe_ctx);
1682 if (raw_command_line.empty()) {
1687 const bool is_alias = !raw_command_line.contains(
"platform");
1696 is_alias ?
"shell" :
"platform shell");
1705 :
GetDebugger().GetPlatformList().GetSelectedPlatform());
1712 error = (platform_sp->RunShellCommand(
1713 m_options.m_shell_interpreter, cmd, working_dir, &status, &signo,
1714 &output,
nullptr,
m_options.m_timeout));
1715 if (!output.empty())
1722 "error: command returned with status %i and signal %s\n",
1723 status, signo_cstr);
1726 "error: command returned with status %i and signal %i\n",
1730 "error: command returned with status %i\n", status);
1734 "error: cannot run remote shell commands without a platform\n");
1736 "error: cannot run remote shell commands without a platform");
1754 interpreter,
"platform target-install",
1755 "Install a target (bundle or executable file) to the remote end.",
1756 "platform target-install <local-thing> <remote-sandbox>", 0) {
1776 result.
AppendError(
"platform target-install takes two arguments");
1784 result.
AppendError(
"source location does not exist or is not accessible");
1788 GetDebugger().GetPlatformList().GetSelectedPlatform());
1790 result.
AppendError(
"no platform currently selected");
1795 if (
error.Success()) {
1805 interpreter,
"platform",
"Commands to manage and create platforms.",
1806 "platform [connect|disconnect|info|list|status|select] ...") {
static llvm::raw_ostream & error(Stream &strm)
const OptionPermissions & operator=(const OptionPermissions &)=delete
void OptionParsingStarting(ExecutionContext *execution_context) override
OptionPermissions()=default
lldb_private::Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
~OptionPermissions() override=default
OptionPermissions(const OptionPermissions &)=delete
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
An architecture specification class.
A command line argument class.
size_t GetArgumentCount() const
Gets the number of arguments left in this command object.
llvm::ArrayRef< ArgEntry > entries() const
const char * GetArgumentAtIndex(size_t idx) const
Gets the NULL terminated C string argument pointer for the argument at index idx.
bool GetCommandString(std::string &command) const
static bool InvokeCommonCompletionCallbacks(CommandInterpreter &interpreter, uint32_t completion_mask, lldb_private::CompletionRequest &request, SearchFilter *searcher)
static void PlatformPluginNames(CommandInterpreter &interpreter, CompletionRequest &request, SearchFilter *searcher)
ExecutionContext GetExecutionContext(bool adopt_dummy_target=true) const
Returns the execution context the interpreter should run a command in.
bool LoadSubCommand(llvm::StringRef cmd_name, const lldb::CommandObjectSP &command_obj) override
CommandObjectMultiword(CommandInterpreter &interpreter, const char *name, const char *help=nullptr, const char *syntax=nullptr, uint32_t flags=0)
friend class CommandInterpreter
CommandObjectParsed(CommandInterpreter &interpreter, const char *name, const char *help=nullptr, const char *syntax=nullptr, uint32_t flags=0)
CommandObjectRaw(CommandInterpreter &interpreter, llvm::StringRef name, llvm::StringRef help="", llvm::StringRef syntax="", uint32_t flags=0)
std::vector< CommandArgumentData > CommandArgumentEntry
virtual void SetHelpLong(llvm::StringRef str)
void AddSimpleArgumentList(lldb::CommandArgumentType arg_type, ArgumentRepetitionType repetition_type=eArgRepeatPlain)
std::vector< CommandArgumentEntry > m_arguments
CommandInterpreter & GetCommandInterpreter()
CommandInterpreter & m_interpreter
bool ParseOptions(Args &args, CommandReturnObject &result)
Target * GetTarget()
Get the target this command should operate on.
virtual llvm::StringRef GetSyntax()
void AppendError(llvm::StringRef in_string)
void SetStatus(lldb::ReturnStatus status)
void AppendErrorWithFormat(const char *format,...) __attribute__((format(printf
void void AppendMessageWithFormatv(const char *format, Args &&...args)
lldb::ReturnStatus GetStatus() const
void AppendErrorWithFormatv(const char *format, Args &&...args)
Stream & GetOutputStream()
"lldb/Utility/ArgCompletionRequest.h"
size_t GetCursorIndex() const
A class to manage flag bits.
CommandInterpreter & GetCommandInterpreter()
PlatformList & GetPlatformList()
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
const lldb::TargetSP & GetTargetSP() const
Get accessor to get the target shared pointer.
static FileSystem & Instance()
void Resolve(llvm::SmallVectorImpl< char > &path, bool force_make_absolute=false)
Resolve path to make it canonical.
static const char * GetSignalAsCString(int signo)
A class that describes an executable image and its associated object and symbol files.
const ArchSpec & GetArchitecture() const
Get const accessor for the module architecture.
const FileSpec & GetFileSpec() const
Get const accessor for the module file specification.
A pair of an option list with a 'raw' string as a suffix.
bool HasArgs() const
Returns true if there are any arguments before the raw suffix.
Args & GetArgs()
Returns the list of arguments.
const std::string & GetRawPart() const
Returns the raw suffix part of the parsed string.
A command line option parsing protocol class.
std::vector< Option > m_getopt_table
static llvm::StringRef GetPlatformPluginDescriptionAtIndex(uint32_t idx)
static llvm::StringRef GetPlatformPluginNameAtIndex(uint32_t idx)
static void DumpTableHeader(Stream &s, bool show_args, bool verbose)
void Dump(Stream &s, UserIDResolver &resolver) const
void DumpAsTableRow(Stream &s, UserIDResolver &resolver, bool show_args, bool verbose) const
static Status FromErrorStringWithFormat(const char *format,...) __attribute__((format(printf
static Status FromErrorString(const char *str)
bool Fail() const
Test for error condition.
const char * AsCString(const char *default_error_str="unknown error") const
Get the error string associated with the current error.
A stream class that can stream formatted output to a file.
void Format(const char *format, Args &&... args)
Forwards the arguments to llvm::formatv and writes to the stream.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
size_t EOL()
Output and End of Line character to the stream.
void SetProcessLaunchInfo(const ProcessLaunchInfo &launch_info)
bool GetRunArguments(Args &args) const
Module * GetExecutableModulePointer()
lldb::PlatformSP GetPlatform()
#define LLDB_INVALID_PROCESS_ID
A class that represents a running process on the host machine.
std::vector< OptionArgElement > OptionElementVector
const char * StateAsCString(lldb::StateType state)
Converts a StateType to a C string.
std::vector< ProcessInstanceInfo > ProcessInstanceInfoList
@ eRemoteDiskDirectoryCompletion
@ eRemoteDiskFileCompletion
std::shared_ptr< lldb_private::ScriptedMetadata > ScriptedMetadataSP
std::shared_ptr< lldb_private::CommandObject > CommandObjectSP
std::shared_ptr< lldb_private::Platform > PlatformSP
StateType
Process and Thread States.
@ eStateStopped
Process or thread is stopped and can be examined.
std::shared_ptr< lldb_private::Process > ProcessSP
std::shared_ptr< lldb_private::Debugger > DebuggerSP
std::shared_ptr< lldb_private::Event > EventSP
@ eReturnStatusSuccessFinishResult
@ eReturnStatusSuccessFinishNoResult
@ eArgTypeUnsignedInteger
std::shared_ptr< lldb_private::Target > TargetSP
Used to build individual command argument lists.
ArgumentRepetitionType arg_repetition
lldb::CommandArgumentType arg_type