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) {
81 error.SetErrorStringWithFormat(
"invalid value for permissions: %s",
82 option_arg.str().c_str());
88 if (perms == (mode_t)-1)
89 error.SetErrorStringWithFormat(
"invalid value for permissions: %s",
90 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),
175 if (platform_name && platform_name[0]) {
176 const bool select =
true;
195 "platform create takes a platform name as an argument\n");
209 "List all platforms that are available.", nullptr,
217 ostrm.
Printf(
"Available platforms:\n");
220 ostrm.
Format(
"{0}: {1}\n", host_platform_sp->GetPluginName(),
221 host_platform_sp->GetDescription());
224 for (idx = 0;
true; ++idx) {
225 llvm::StringRef plugin_name =
227 if (plugin_name.empty())
229 llvm::StringRef plugin_desc =
231 ostrm.
Format(
"{0}: {1}\n", plugin_name, plugin_desc);
235 result.
AppendError(
"no platforms are available\n");
247 "Display status for the current platform.", nullptr,
265 platform_sp->GetStatus(ostrm);
268 result.
AppendError(
"no platform is currently selected\n");
279 interpreter,
"platform connect",
280 "Select the current platform by providing a connection URL.",
281 "platform connect <connect-url>", 0) {
293 GetDebugger().GetPlatformList().GetSelectedPlatform());
296 if (
error.Success()) {
297 platform_sp->GetStatus(ostrm);
308 result.
AppendError(
"no platform is currently selected\n");
315 GetDebugger().GetPlatformList().GetSelectedPlatform());
318 m_platform_options = platform_sp->GetConnectionOptions(
m_interpreter);
319 if (m_platform_options !=
nullptr && !m_platform_options->
m_did_finalize)
322 return m_platform_options;
331 "Disconnect from the current platform.",
332 "platform disconnect", 0) {}
339 GetDebugger().GetPlatformList().GetSelectedPlatform());
344 if (platform_sp->IsConnected()) {
347 const char *hostname_cstr = platform_sp->GetHostname();
348 std::string hostname;
350 hostname.assign(hostname_cstr);
352 error = platform_sp->DisconnectRemote();
353 if (
error.Success()) {
355 if (hostname.empty())
356 ostrm.
Format(
"Disconnected from \"{0}\"\n",
357 platform_sp->GetPluginName());
359 ostrm.
Printf(
"Disconnected from \"%s\"\n", hostname.c_str());
367 platform_sp->GetPluginName());
372 "\"platform disconnect\" doesn't take any arguments");
375 result.
AppendError(
"no platform is currently selected");
386 "Set settings for the current target's platform.",
387 "platform settings", 0),
390 "The working directory for the platform.") {
399 GetDebugger().GetPlatformList().GetSelectedPlatform());
402 platform_sp->SetWorkingDirectory(
405 result.
AppendError(
"no platform is currently selected");
425 "Make a new directory on the remote end.", nullptr,
435 GetDebugger().GetPlatformList().GetSelectedPlatform());
437 std::string cmd_line;
442 if (options_permissions)
445 mode = lldb::eFilePermissionsUserRWX | lldb::eFilePermissionsGroupRWX |
446 lldb::eFilePermissionsWorldRX;
448 if (
error.Success()) {
454 result.
AppendError(
"no platform currently selected\n");
476 "Open a file on the remote end.", nullptr, 0) {
494 GetDebugger().GetPlatformList().GetSelectedPlatform());
497 std::string cmd_line;
502 if (options_permissions)
505 perms = lldb::eFilePermissionsUserRW | lldb::eFilePermissionsGroupRW |
506 lldb::eFilePermissionsWorldRead;
511 if (
error.Success()) {
518 result.
AppendError(
"no platform currently selected\n");
540 "Close a file on the remote end.", nullptr, 0) {
549 GetDebugger().GetPlatformList().GetSelectedPlatform());
551 std::string cmd_line;
554 if (!llvm::to_integer(cmd_line, fd)) {
560 bool success = platform_sp->CloseFile(fd,
error);
568 result.
AppendError(
"no platform currently selected\n");
576#define LLDB_OPTIONS_platform_fread
577#include "CommandOptions.inc"
583 "Read data from a file on the remote end.", nullptr,
593 GetDebugger().GetPlatformList().GetSelectedPlatform());
595 std::string cmd_line;
598 if (!llvm::to_integer(cmd_line, fd)) {
605 uint64_t retcode = platform_sp->ReadFile(
615 result.
AppendError(
"no platform currently selected\n");
634 switch (short_option) {
636 if (option_arg.getAsInteger(0,
m_offset))
637 error.SetErrorStringWithFormat(
"invalid offset: '%s'",
638 option_arg.str().c_str());
641 if (option_arg.getAsInteger(0,
m_count))
642 error.SetErrorStringWithFormat(
"invalid offset: '%s'",
643 option_arg.str().c_str());
646 llvm_unreachable(
"Unimplemented option");
658 return llvm::ArrayRef(g_platform_fread_options);
672#define LLDB_OPTIONS_platform_fwrite
673#include "CommandOptions.inc"
679 "Write data to a file on the remote end.", nullptr,
689 GetDebugger().GetPlatformList().GetSelectedPlatform());
691 std::string cmd_line;
695 if (!llvm::to_integer(cmd_line, fd)) {
710 result.
AppendError(
"no platform currently selected\n");
729 switch (short_option) {
731 if (option_arg.getAsInteger(0,
m_offset))
732 error.SetErrorStringWithFormat(
"invalid offset: '%s'",
733 option_arg.str().c_str());
736 m_data.assign(std::string(option_arg));
739 llvm_unreachable(
"Unimplemented option");
751 return llvm::ArrayRef(g_platform_fwrite_options);
768 interpreter,
"platform file",
769 "Commands to access files on the current platform.",
770 "platform file [open|close|read|write] ...") {
795 interpreter,
"platform get-file",
796 "Transfer a file from the remote end to the local host.",
797 "platform get-file <remote-file-spec> <local-file-spec>", 0) {
801(lldb) platform get-file /the/remote/file/path /the/local/file/path
803 Transfer a file from the remote end with file path /the/remote/file/path to the local host.)");
813 arg1.push_back(file_arg_remote);
820 arg2.push_back(file_arg_host);
845 result.
AppendError(
"required arguments missing; specify both the "
846 "source and destination file paths");
851 GetDebugger().GetPlatformList().GetSelectedPlatform());
857 if (
error.Success()) {
859 "successfully get-file from %s (remote) to %s (host)\n",
860 remote_file_path, local_file_path);
867 result.
AppendError(
"no platform currently selected\n");
878 "Get the file size from the remote end.",
879 "platform get-size <remote-file-spec>", 0) {
883(lldb) platform get-size /the/remote/file/path
885 Get the file size from the remote end with path /the/remote/file/path.)");
895 arg1.push_back(file_arg_remote);
917 result.
AppendError(
"required argument missing; specify the source file "
918 "path as the only argument");
923 GetDebugger().GetPlatformList().GetSelectedPlatform());
930 remote_file_path.c_str(), size);
934 "Error getting file size of %s (remote)\n",
935 remote_file_path.c_str());
938 result.
AppendError(
"no platform currently selected\n");
949 "Get the file permission bits from the remote end.",
950 "platform get-permissions <remote-file-spec>", 0) {
954(lldb) platform get-permissions /the/remote/file/path
956 Get the file permissions from the remote end with path /the/remote/file/path.)");
966 arg1.push_back(file_arg_remote);
988 result.
AppendError(
"required argument missing; specify the source file "
989 "path as the only argument");
994 GetDebugger().GetPlatformList().GetSelectedPlatform());
997 uint32_t permissions;
1000 if (
error.Success()) {
1002 "File permissions of %s (remote): 0o%04" PRIo32
"\n",
1003 remote_file_path.c_str(), permissions);
1008 result.
AppendError(
"no platform currently selected\n");
1019 "Check if the file exists on the remote end.",
1020 "platform file-exists <remote-file-spec>", 0) {
1024(lldb) platform file-exists /the/remote/file/path
1026 Check if /the/remote/file/path exists on the remote end.)");
1036 arg1.push_back(file_arg_remote);
1058 result.
AppendError(
"required argument missing; specify the source file "
1059 "path as the only argument");
1064 GetDebugger().GetPlatformList().GetSelectedPlatform());
1067 bool exists = platform_sp->GetFileExists(
FileSpec(remote_file_path));
1069 "File %s (remote) %s\n",
1070 remote_file_path.c_str(), exists ?
"exists" :
"does not exist");
1073 result.
AppendError(
"no platform currently selected\n");
1084 interpreter,
"platform put-file",
1085 "Transfer a file from this system to the remote end.",
1086 "platform put-file <source> [<destination>]", 0) {
1090(lldb) platform put-file /source/foo.txt /destination/bar.txt
1092(lldb) platform put-file /source/foo.txt
1094 Relative source file paths are resolved against lldb's local working directory.
1096 Omitting the destination places the file in the platform working directory.)");
1123 FileSpec dst_fs(dst ? dst : src_fs.GetFilename().GetCString());
1126 GetDebugger().GetPlatformList().GetSelectedPlatform());
1128 Status error(platform_sp->PutFile(src_fs, dst_fs));
1129 if (
error.Success()) {
1135 result.
AppendError(
"no platform currently selected\n");
1146 "Launch a new process on a remote platform.",
1147 "platform process launch program",
1148 eCommandRequiresTarget | eCommandTryTargetAPILock),
1180 llvm::SmallString<128> exe_path;
1182 if (!exe_path.empty())
1203 const bool first_arg_is_executable =
true;
1213 Args target_run_args;
1218 ProcessSP process_sp(platform_sp->DebugProcess(
1221 if (!process_sp &&
error.Success()) {
1222 result.
AppendError(
"failed to launch or debug process");
1224 }
else if (!
error.Success()) {
1229 const bool synchronous_execution =
1232 bool rebroadcast_first_stop =
1233 !synchronous_execution &&
1237 StateType state = process_sp->WaitForProcessToStop(
1238 std::nullopt, &first_stop_event_sp, rebroadcast_first_stop,
1239 launch_info.GetHijackListener());
1240 process_sp->RestoreProcessEvents();
1242 if (rebroadcast_first_stop) {
1243 assert(first_stop_event_sp);
1244 process_sp->BroadcastEvent(first_stop_event_sp);
1250 if (launch_info.GetFlags().Test(eLaunchFlagStopAtEntry))
1252 if (synchronous_execution) {
1258 error = process_sp->Resume();
1259 if (!
error.Success()) {
1261 "process resume at entry point failed: %s",
1268 "initial process state wasn't stopped: %s",
1273 if (process_sp && process_sp->IsAlive()) {
1278 result.
AppendError(
"'platform process launch' uses the current target "
1279 "file and arguments, or the executable and its "
1280 "arguments can be specified in this command");
1297#define LLDB_OPTIONS_platform_process_list
1298#include "CommandOptions.inc"
1304 "List processes on a remote platform by name, pid, "
1305 "or many other matching attributes.",
1306 "platform process list", 0) {}
1331 if (platform_sp->GetProcessInfo(pid, proc_info)) {
1334 proc_info.
DumpAsTableRow(ostrm, platform_sp->GetUserIDResolver(),
1339 "no process found with pid = %" PRIu64
"\n", pid);
1343 const uint32_t matches =
1345 const char *match_desc =
nullptr;
1346 const char *match_name =
1348 if (match_name && match_name[0]) {
1350 case NameMatch::Ignore:
1352 case NameMatch::Equals:
1353 match_desc =
"matched";
1355 case NameMatch::Contains:
1356 match_desc =
"contained";
1358 case NameMatch::StartsWith:
1359 match_desc =
"started with";
1361 case NameMatch::EndsWith:
1362 match_desc =
"ended with";
1364 case NameMatch::RegularExpression:
1365 match_desc =
"matched the regular expression";
1373 "no processes were found that {0} \"{1}\" on the \"{2}\" "
1375 match_desc, match_name, platform_sp->GetName());
1378 "no processes were found on the \"{0}\" platform\n",
1379 platform_sp->GetName());
1382 "{0} matching process{1} found on \"{2}\"", matches,
1383 matches > 1 ?
"es were" :
" was", platform_sp->GetName());
1386 match_desc, match_name);
1390 for (uint32_t i = 0; i < matches; ++i) {
1391 proc_infos[i].DumpAsTableRow(
1414 bool success =
false;
1417 success = !option_arg.getAsInteger(0,
id);
1418 switch (short_option) {
1422 error.SetErrorStringWithFormat(
"invalid process ID string: '%s'",
1423 option_arg.str().c_str());
1429 error.SetErrorStringWithFormat(
1430 "invalid parent process ID string: '%s'",
1431 option_arg.str().c_str());
1437 error.SetErrorStringWithFormat(
"invalid user ID string: '%s'",
1438 option_arg.str().c_str());
1445 error.SetErrorStringWithFormat(
1446 "invalid effective user ID string: '%s'",
1447 option_arg.str().c_str());
1453 error.SetErrorStringWithFormat(
"invalid group ID string: '%s'",
1454 option_arg.str().c_str());
1461 error.SetErrorStringWithFormat(
1462 "invalid effective group ID string: '%s'",
1463 option_arg.str().c_str());
1470 target_sp ? target_sp->GetDebugger().shared_from_this()
1473 debugger_sp ? debugger_sp->GetPlatformList().GetSelectedPlatform()
1481 option_arg, FileSpec::Style::native);
1487 option_arg, FileSpec::Style::native);
1493 option_arg, FileSpec::Style::native);
1499 option_arg, FileSpec::Style::native);
1505 option_arg, FileSpec::Style::native);
1522 llvm_unreachable(
"Unimplemented option");
1535 return llvm::ArrayRef(g_platform_process_list_options);
1553 interpreter,
"platform process info",
1554 "Get detailed information for one or more process by process ID.",
1555 "platform process info <pid> [<pid> <pid> ...]", 0) {
1565 arg.push_back(pid_args);
1596 if (platform_sp->IsConnected()) {
1598 for (
auto &entry : args.
entries()) {
1600 if (entry.ref().getAsInteger(0, pid)) {
1602 entry.ref().str().c_str());
1606 if (platform_sp->GetProcessInfo(pid, proc_info)) {
1607 ostrm.
Printf(
"Process information for process %" PRIu64
":\n",
1609 proc_info.
Dump(ostrm, platform_sp->GetUserIDResolver());
1611 ostrm.
Printf(
"error: no process information is available for "
1612 "process %" PRIu64
"\n",
1621 platform_sp->GetPluginName());
1625 result.
AppendError(
"one or more process id(s) must be specified");
1628 result.
AppendError(
"no platform is currently selected");
1634#define LLDB_OPTIONS_platform_process_attach
1635#include "CommandOptions.inc"
1641 "Attach to a process.",
1642 "platform process attach <cmd-options>"),
1654 GetDebugger().GetPlatformList().GetSelectedPlatform());
1665 ProcessSP remote_process_sp = platform_sp->Attach(
1669 }
else if (!remote_process_sp) {
1670 result.
AppendError(
"could not attach: unknown reason");
1674 result.
AppendError(
"no platform is currently selected");
1692 "Commands to query, launch and attach to "
1693 "processes on the current platform.",
1694 "platform process [attach|launch|list] ...") {
1717#define LLDB_OPTIONS_platform_shell
1718#include "CommandOptions.inc"
1729 return llvm::ArrayRef(g_platform_shell_options);
1736 const char short_option = (char)
GetDefinitions()[option_idx].short_option;
1738 switch (short_option) {
1743 uint32_t timeout_sec;
1744 if (option_arg.getAsInteger(10, timeout_sec))
1745 error.SetErrorStringWithFormat(
1746 "could not convert \"%s\" to a numeric value.",
1747 option_arg.str().c_str());
1749 m_timeout = std::chrono::seconds(timeout_sec);
1752 if (option_arg.empty()) {
1753 error.SetErrorStringWithFormat(
1754 "missing shell interpreter path for option -i|--interpreter.");
1762 llvm_unreachable(
"Unimplemented option");
1781 "Run a shell command on the current platform.",
1782 "platform shell <shell-command>", 0) {
1797 if (raw_command_line.empty()) {
1802 const bool is_alias = !raw_command_line.contains(
"platform");
1811 is_alias ?
"shell" :
"platform shell");
1820 :
GetDebugger().GetPlatformList().GetSelectedPlatform());
1828 working_dir, &status, &signo,
1830 if (!output.empty())
1837 "error: command returned with status %i and signal %s\n",
1838 status, signo_cstr);
1841 "error: command returned with status %i and signal %i\n",
1845 "error: command returned with status %i\n", status);
1849 "error: cannot run remote shell commands without a platform\n");
1850 error.SetErrorString(
1851 "error: cannot run remote shell commands without a platform");
1870 interpreter,
"platform target-install",
1871 "Install a target (bundle or executable file) to the remote end.",
1872 "platform target-install <local-thing> <remote-sandbox>", 0) {
1892 result.
AppendError(
"platform target-install takes two arguments");
1900 result.
AppendError(
"source location does not exist or is not accessible");
1904 GetDebugger().GetPlatformList().GetSelectedPlatform());
1906 result.
AppendError(
"no platform currently selected");
1911 if (
error.Success()) {
1922 interpreter,
"platform",
"Commands to manage and create platforms.",
1923 "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.
void AppendArguments(const Args &rhs)
size_t GetArgumentCount() const
Gets the number of arguments left in this command object.
void AppendArgument(llvm::StringRef arg_str, char quote_char='\0')
Appends a new argument to the end of the list argument list.
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() const
bool LoadSubCommand(llvm::StringRef cmd_name, const lldb::CommandObjectSP &command_obj) override
std::vector< CommandArgumentData > CommandArgumentEntry
virtual void SetHelpLong(llvm::StringRef str)
ExecutionContext m_exe_ctx
std::vector< CommandArgumentEntry > m_arguments
CommandInterpreter & GetCommandInterpreter()
CommandInterpreter & m_interpreter
bool ParseOptions(Args &args, CommandReturnObject &result)
virtual llvm::StringRef GetSyntax()
lldb_private::ProcessAttachInfo attach_info
lldb_private::ProcessLaunchInfo launch_info
void AppendErrorWithFormatv(const char *format, Args &&... args)
void void AppendError(llvm::StringRef in_string)
void SetStatus(lldb::ReturnStatus status)
void void AppendMessageWithFormatv(const char *format, Args &&... args)
void AppendErrorWithFormat(const char *format,...) __attribute__((format(printf
void AppendMessageWithFormat(const char *format,...) __attribute__((format(printf
Stream & GetOutputStream()
"lldb/Utility/ArgCompletionRequest.h"
size_t GetCursorIndex() const
A class to manage flag bits.
lldb::TargetSP GetSelectedTarget()
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.
Target * GetTargetPtr() const
Returns a pointer to the target object.
void SetFile(llvm::StringRef path, Style style)
Change the file specified with a new path.
size_t GetPath(char *path, size_t max_path_length, bool denormalize=true) const
Extract the full path to the file.
void Resolve(llvm::SmallVectorImpl< char > &path)
Resolve path to make it canonical.
static FileSystem & Instance()
bool Test(ValueType bit) const
Test a single flag bit.
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.
OptionValueFileSpec & GetOptionValue()
const OptionGroup * GetGroupWithOption(char short_opt)
void Append(OptionGroup *group)
Append options from a OptionGroup class.
const std::string & GetName()
const StructuredData::DictionarySP GetStructuredData()
FileSpec & GetCurrentValue()
bool OptionWasSet() const
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.
void NotifyOptionParsingStarting(ExecutionContext *execution_context)
std::vector< Option > m_getopt_table
static llvm::StringRef GetPlatformPluginDescriptionAtIndex(uint32_t idx)
static llvm::StringRef GetPlatformPluginNameAtIndex(uint32_t idx)
void SetProcessPluginName(llvm::StringRef plugin)
void SetGroupID(uint32_t gid)
const char * GetName() const
lldb::pid_t GetProcessID() const
void SetScriptedMetadata(lldb::ScriptedMetadataSP metadata_sp)
void SetArguments(const Args &args, bool first_arg_is_executable)
void SetProcessID(lldb::pid_t pid)
FileSpec & GetExecutableFile()
void SetUserID(uint32_t uid)
ArchSpec & GetArchitecture()
NameMatch GetNameMatchType() const
void SetNameMatchType(NameMatch name_match_type)
void SetMatchAllUsers(bool b)
ProcessInstanceInfo & GetProcessInfo()
void SetEffectiveGroupID(uint32_t gid)
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
void SetParentProcessID(lldb::pid_t pid)
void SetEffectiveUserID(uint32_t uid)
void SetProcessPluginName(llvm::StringRef plugin)
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)
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