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,
262 platform_sp->GetStatus(ostrm);
265 result.
AppendError(
"no platform is currently selected\n");
275 interpreter,
"platform connect",
276 "Select the current platform by providing a connection URL.",
277 "platform connect <connect-url>", 0) {
288 GetDebugger().GetPlatformList().GetSelectedPlatform());
291 if (
error.Success()) {
292 platform_sp->GetStatus(ostrm);
303 result.
AppendError(
"no platform is currently selected\n");
309 GetDebugger().GetPlatformList().GetSelectedPlatform());
312 m_platform_options = platform_sp->GetConnectionOptions(
m_interpreter);
313 if (m_platform_options !=
nullptr && !m_platform_options->
m_did_finalize)
316 return m_platform_options;
325 "Disconnect from the current platform.",
326 "platform disconnect", 0) {}
333 GetDebugger().GetPlatformList().GetSelectedPlatform());
338 if (platform_sp->IsConnected()) {
341 const char *hostname_cstr = platform_sp->GetHostname();
342 std::string hostname;
344 hostname.assign(hostname_cstr);
346 error = platform_sp->DisconnectRemote();
347 if (
error.Success()) {
349 if (hostname.empty())
350 ostrm.
Format(
"Disconnected from \"{0}\"\n",
351 platform_sp->GetPluginName());
353 ostrm.
Printf(
"Disconnected from \"%s\"\n", hostname.c_str());
361 platform_sp->GetPluginName());
366 "\"platform disconnect\" doesn't take any arguments");
369 result.
AppendError(
"no platform is currently selected");
379 "Set settings for the current target's platform.",
380 "platform settings", 0),
383 "The working directory for the platform.") {
392 GetDebugger().GetPlatformList().GetSelectedPlatform());
395 platform_sp->SetWorkingDirectory(
399 result.
AppendError(
"no platform is currently selected");
418 "Make a new directory on the remote end.", nullptr,
427 GetDebugger().GetPlatformList().GetSelectedPlatform());
429 std::string cmd_line;
434 if (options_permissions)
437 mode = lldb::eFilePermissionsUserRWX | lldb::eFilePermissionsGroupRWX |
438 lldb::eFilePermissionsWorldRX;
440 if (
error.Success()) {
446 result.
AppendError(
"no platform currently selected\n");
467 "Open a file on the remote end.", nullptr, 0) {
475 GetDebugger().GetPlatformList().GetSelectedPlatform());
478 std::string cmd_line;
483 if (options_permissions)
486 perms = lldb::eFilePermissionsUserRW | lldb::eFilePermissionsGroupRW |
487 lldb::eFilePermissionsWorldRead;
492 if (
error.Success()) {
499 result.
AppendError(
"no platform currently selected\n");
520 "Close a file on the remote end.", nullptr, 0) {
528 GetDebugger().GetPlatformList().GetSelectedPlatform());
530 std::string cmd_line;
533 if (!llvm::to_integer(cmd_line, fd)) {
539 bool success = platform_sp->CloseFile(fd,
error);
547 result.
AppendError(
"no platform currently selected\n");
554#define LLDB_OPTIONS_platform_fread
555#include "CommandOptions.inc"
561 "Read data from a file on the remote end.", nullptr,
570 GetDebugger().GetPlatformList().GetSelectedPlatform());
572 std::string cmd_line;
575 if (!llvm::to_integer(cmd_line, fd)) {
580 std::string buffer(
m_options.m_count, 0);
582 uint64_t retcode = platform_sp->ReadFile(
592 result.
AppendError(
"no platform currently selected\n");
610 switch (short_option) {
612 if (option_arg.getAsInteger(0,
m_offset))
614 option_arg.str().c_str());
617 if (option_arg.getAsInteger(0,
m_count))
619 option_arg.str().c_str());
622 llvm_unreachable(
"Unimplemented option");
634 return llvm::ArrayRef(g_platform_fread_options);
648#define LLDB_OPTIONS_platform_fwrite
649#include "CommandOptions.inc"
655 "Write data to a file on the remote end.", nullptr,
664 GetDebugger().GetPlatformList().GetSelectedPlatform());
666 std::string cmd_line;
670 if (!llvm::to_integer(cmd_line, fd)) {
685 result.
AppendError(
"no platform currently selected\n");
703 switch (short_option) {
705 if (option_arg.getAsInteger(0,
m_offset))
707 option_arg.str().c_str());
710 m_data.assign(std::string(option_arg));
713 llvm_unreachable(
"Unimplemented option");
725 return llvm::ArrayRef(g_platform_fwrite_options);
742 interpreter,
"platform file",
743 "Commands to access files on the current platform.",
744 "platform file [open|close|read|write] ...") {
769 interpreter,
"platform get-file",
770 "Transfer a file from the remote end to the local host.",
771 "platform get-file <remote-file-spec> <local-file-spec>", 0) {
775(lldb) platform get-file /the/remote/file/path /the/local/file/path
777 Transfer a file from the remote end with file path /the/remote/file/path to the local host.)");
787 arg1.push_back(file_arg_remote);
794 arg2.push_back(file_arg_host);
819 result.
AppendError(
"required arguments missing; specify both the "
820 "source and destination file paths");
825 GetDebugger().GetPlatformList().GetSelectedPlatform());
829 Status error = platform_sp->GetFile(FileSpec(remote_file_path),
830 FileSpec(local_file_path));
831 if (
error.Success()) {
833 "successfully get-file from {0} (remote) to {1} (host)",
834 remote_file_path, local_file_path);
841 result.
AppendError(
"no platform currently selected\n");
851 "Get the file size from the remote end.",
852 "platform get-size <remote-file-spec>", 0) {
856(lldb) platform get-size /the/remote/file/path
858 Get the file size from the remote end with path /the/remote/file/path.)");
868 result.
AppendError(
"required argument missing; specify the source file "
869 "path as the only argument");
874 GetDebugger().GetPlatformList().GetSelectedPlatform());
877 user_id_t size = platform_sp->GetFileSize(FileSpec(remote_file_path));
880 remote_file_path.c_str(), size);
884 remote_file_path.c_str());
887 result.
AppendError(
"no platform currently selected\n");
897 "Get the file permission bits from the remote end.",
898 "platform get-permissions <remote-file-spec>", 0) {
902(lldb) platform get-permissions /the/remote/file/path
904 Get the file permissions from the remote end with path /the/remote/file/path.)");
914 result.
AppendError(
"required argument missing; specify the source file "
915 "path as the only argument");
920 GetDebugger().GetPlatformList().GetSelectedPlatform());
923 uint32_t permissions;
924 Status error = platform_sp->GetFilePermissions(FileSpec(remote_file_path),
926 if (
error.Success()) {
928 "File permissions of {0} (remote): 0o{1}", remote_file_path,
929 llvm::format(
"%04o", permissions));
934 result.
AppendError(
"no platform currently selected\n");
944 "Check if the file exists on the remote end.",
945 "platform file-exists <remote-file-spec>", 0) {
949(lldb) platform file-exists /the/remote/file/path
951 Check if /the/remote/file/path exists on the remote end.)");
961 result.
AppendError(
"required argument missing; specify the source file "
962 "path as the only argument");
967 GetDebugger().GetPlatformList().GetSelectedPlatform());
970 bool exists = platform_sp->GetFileExists(FileSpec(remote_file_path));
972 remote_file_path.c_str(),
973 exists ?
"exists" :
"does not exist");
976 result.
AppendError(
"no platform currently selected\n");
986 interpreter,
"platform put-file",
987 "Transfer a file from this system to the remote end.",
988 "platform put-file <source> [<destination>]", 0) {
992(lldb) platform put-file /source/foo.txt /destination/bar.txt
994(lldb) platform put-file /source/foo.txt
996 Relative source file paths are resolved against lldb's local working directory.
998 Omitting the destination places the file in the platform working directory.)");
1025 FileSpec dst_fs(dst ? dst : src_fs.GetFilename().GetCString());
1028 GetDebugger().GetPlatformList().GetSelectedPlatform());
1030 Status error(platform_sp->PutFile(src_fs, dst_fs));
1031 if (
error.Success()) {
1037 result.
AppendError(
"no platform currently selected\n");
1047 "Launch a new process on a remote platform.",
1048 "platform process launch program",
1049 eCommandRequiresTarget | eCommandTryTargetAPILock),
1086 llvm::SmallString<128> exe_path;
1087 m_options.launch_info.GetExecutableFile().GetPath(exe_path);
1088 if (!exe_path.empty())
1089 m_options.launch_info.GetArguments().AppendArgument(exe_path);
1094 m_options.launch_info.SetProcessPluginName(
"ScriptedProcess");
1097 m_options.launch_info.SetScriptedMetadata(metadata_sp);
1102 if (
m_options.launch_info.GetExecutableFile()) {
1105 m_options.launch_info.GetArguments().AppendArguments(args);
1109 const bool first_arg_is_executable =
true;
1110 m_options.launch_info.SetArguments(args, first_arg_is_executable);
1114 if (
m_options.launch_info.GetExecutableFile()) {
1119 Args target_run_args;
1121 m_options.launch_info.GetArguments().AppendArguments(target_run_args);
1124 ProcessSP process_sp(platform_sp->DebugProcess(
1127 if (!process_sp &&
error.Success()) {
1128 result.
AppendError(
"failed to launch or debug process");
1130 }
else if (!
error.Success()) {
1135 const bool synchronous_execution =
1137 auto launch_info =
m_options.launch_info;
1138 bool rebroadcast_first_stop =
1139 !synchronous_execution &&
1140 launch_info.GetFlags().Test(eLaunchFlagStopAtEntry);
1143 StateType state = process_sp->WaitForProcessToStop(
1144 std::nullopt, &first_stop_event_sp, rebroadcast_first_stop,
1145 launch_info.GetHijackListener());
1146 process_sp->RestoreProcessEvents();
1148 if (rebroadcast_first_stop) {
1149 assert(first_stop_event_sp);
1150 process_sp->BroadcastEvent(first_stop_event_sp);
1157 if (launch_info.GetFlags().Test(eLaunchFlagStopAtEntry))
1159 if (synchronous_execution) {
1165 error = process_sp->Resume();
1166 if (!
error.Success()) {
1168 "process resume at entry point failed: %s",
1175 "initial process state wasn't stopped: %s",
1180 if (process_sp && process_sp->IsAlive()) {
1187 result.
AppendError(
"'platform process launch' uses the current target "
1188 "file and arguments, or the executable and its "
1189 "arguments can be specified in this command");
1205#define LLDB_OPTIONS_platform_process_list
1206#include "CommandOptions.inc"
1212 "List processes on a remote platform by name, pid, "
1213 "or many other matching attributes.",
1214 "platform process list", 0) {}
1239 if (platform_sp->GetProcessInfo(pid, proc_info)) {
1242 proc_info.
DumpAsTableRow(ostrm, platform_sp->GetUserIDResolver(),
1251 const uint32_t matches =
1252 platform_sp->FindProcesses(
m_options.match_info, proc_infos);
1253 const char *match_desc =
nullptr;
1254 const char *match_name =
1255 m_options.match_info.GetProcessInfo().GetName();
1256 if (match_name && match_name[0]) {
1257 switch (
m_options.match_info.GetNameMatchType()) {
1261 match_desc =
"matched";
1264 match_desc =
"contained";
1267 match_desc =
"started with";
1270 match_desc =
"ended with";
1273 match_desc =
"matched the regular expression";
1281 "no processes were found that {0} \"{1}\" on the \"{2}\" "
1283 match_desc, match_name, platform_sp->GetName());
1286 "no processes were found on the \"{0}\" platform\n",
1287 platform_sp->GetName());
1290 "{0} matching process{1} found on \"{2}\"", matches,
1291 matches > 1 ?
"es were" :
" was", platform_sp->GetName());
1294 strm << llvm::formatv(
" whose name {0} \"{1}\"", match_desc,
1299 for (uint32_t i = 0; i < matches; ++i) {
1300 proc_infos[i].DumpAsTableRow(
1301 ostrm, platform_sp->GetUserIDResolver(),
m_options.show_args,
1322 bool success =
false;
1325 success = !option_arg.getAsInteger(0,
id);
1326 switch (short_option) {
1328 match_info.GetProcessInfo().SetProcessID(
id);
1331 "invalid process ID string: '%s'", option_arg.str().c_str());
1335 match_info.GetProcessInfo().SetParentProcessID(
id);
1338 "invalid parent process ID string: '%s'",
1339 option_arg.str().c_str());
1346 "invalid user ID string: '%s'", option_arg.str().c_str());
1350 match_info.GetProcessInfo().SetEffectiveUserID(success ?
id
1354 "invalid effective user ID string: '%s'",
1355 option_arg.str().c_str());
1362 "invalid group ID string: '%s'", option_arg.str().c_str());
1366 match_info.GetProcessInfo().SetEffectiveGroupID(success ?
id
1370 "invalid effective group ID string: '%s'",
1371 option_arg.str().c_str());
1378 target_sp ? target_sp->GetDebugger().shared_from_this()
1381 debugger_sp ? debugger_sp->GetPlatformList().GetSelectedPlatform()
1383 match_info.GetProcessInfo().GetArchitecture() =
1388 match_info.GetProcessInfo().GetExecutableFile().SetFile(
1389 option_arg, FileSpec::Style::native);
1394 match_info.GetProcessInfo().GetExecutableFile().SetFile(
1395 option_arg, FileSpec::Style::native);
1400 match_info.GetProcessInfo().GetExecutableFile().SetFile(
1401 option_arg, FileSpec::Style::native);
1406 match_info.GetProcessInfo().GetExecutableFile().SetFile(
1407 option_arg, FileSpec::Style::native);
1412 match_info.GetProcessInfo().GetExecutableFile().SetFile(
1413 option_arg, FileSpec::Style::native);
1430 llvm_unreachable(
"Unimplemented option");
1443 return llvm::ArrayRef(g_platform_process_list_options);
1461 interpreter,
"platform process info",
1462 "Get detailed information for one or more process by process ID.",
1463 "platform process info <pid> [<pid> <pid> ...]", 0) {
1487 if (platform_sp->IsConnected()) {
1489 for (
auto &entry : args.
entries()) {
1491 if (entry.ref().getAsInteger(0, pid)) {
1493 entry.ref().str().c_str());
1497 if (platform_sp->GetProcessInfo(pid, proc_info)) {
1498 ostrm.
Printf(
"Process information for process %" PRIu64
":\n",
1500 proc_info.
Dump(ostrm, platform_sp->GetUserIDResolver());
1502 ostrm.
Printf(
"error: no process information is available for "
1503 "process %" PRIu64
"\n",
1514 platform_sp->GetPluginName());
1518 result.
AppendError(
"one or more process id(s) must be specified");
1521 result.
AppendError(
"no platform is currently selected");
1526#define LLDB_OPTIONS_platform_process_attach
1527#include "CommandOptions.inc"
1533 "Attach to a process.",
1534 "platform process attach <cmd-options>"),
1546 GetDebugger().GetPlatformList().GetSelectedPlatform());
1550 m_options.attach_info.SetProcessPluginName(
"ScriptedProcess");
1553 m_options.attach_info.SetScriptedMetadata(metadata_sp);
1557 ProcessSP remote_process_sp = platform_sp->Attach(
1561 }
else if (!remote_process_sp) {
1562 result.
AppendError(
"could not attach: unknown reason");
1566 result.
AppendError(
"no platform is currently selected");
1583 "Commands to query, launch and attach to "
1584 "processes on the current platform.",
1585 "platform process [attach|launch|list] ...") {
1608#define LLDB_OPTIONS_platform_shell
1609#include "CommandOptions.inc"
1620 return llvm::ArrayRef(g_platform_shell_options);
1627 const char short_option = (char)
GetDefinitions()[option_idx].short_option;
1629 switch (short_option) {
1634 uint32_t timeout_sec;
1635 if (option_arg.getAsInteger(10, timeout_sec))
1637 "could not convert \"%s\" to a numeric value.",
1638 option_arg.str().c_str());
1640 m_timeout = std::chrono::seconds(timeout_sec);
1643 if (option_arg.empty()) {
1645 "missing shell interpreter path for option -i|--interpreter.");
1653 llvm_unreachable(
"Unimplemented option");
1672 "Run a shell command on the current platform.",
1673 "platform shell <shell-command>", 0) {
1684 m_options.NotifyOptionParsingStarting(&exe_ctx);
1687 if (raw_command_line.empty()) {
1692 const bool is_alias = !raw_command_line.contains(
"platform");
1701 is_alias ?
"shell" :
"platform shell");
1710 :
GetDebugger().GetPlatformList().GetSelectedPlatform());
1717 error = (platform_sp->RunShellCommand(
1718 m_options.m_shell_interpreter, cmd, working_dir, &status, &signo,
1719 &output,
nullptr,
m_options.m_timeout));
1720 if (!output.empty())
1727 "error: command returned with status %i and signal %s\n",
1728 status, signo_cstr);
1731 "error: command returned with status %i and signal %i\n",
1735 "error: command returned with status %i\n", status);
1739 "error: cannot run remote shell commands without a platform\n");
1741 "error: cannot run remote shell commands without a platform");
1759 interpreter,
"platform target-install",
1760 "Install a target (bundle or executable file) to the remote end.",
1761 "platform target-install <local-thing> <remote-sandbox>", 0) {
1781 result.
AppendError(
"platform target-install takes two arguments");
1789 result.
AppendError(
"source location does not exist or is not accessible");
1793 GetDebugger().GetPlatformList().GetSelectedPlatform());
1795 result.
AppendError(
"no platform currently selected");
1800 if (
error.Success()) {
1810 interpreter,
"platform",
"Commands to manage and create platforms.",
1811 "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() const
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)
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()
bool IsDummyTarget() const
#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