Lines Matching full:platform

24 #include "lldb/Target/Platform.h"
145 // "platform select <platform-name>"
149 : CommandObjectParsed(interpreter, "platform select",
150 "Create a platform if needed and select it as the "
151 "current platform.",
152 "platform select <platform-name>", 0),
154 false) // Don't include the "--platform" option by passing false
190 result.AppendError("invalid platform name");
194 "platform create takes a platform name as an argument\n");
202 // "platform list"
206 : CommandObjectParsed(interpreter, "platform list",
217 PlatformSP host_platform_sp(Platform::GetHostPlatform());
239 // "platform status"
243 : CommandObjectParsed(interpreter, "platform status",
244 "Display status for the current platform.", nullptr,
265 result.AppendError("no platform is currently selected\n");
270 // "platform connect <connect-url>"
275 interpreter, "platform connect",
276 "Select the current platform by providing a connection URL.",
277 "platform connect <connect-url>", 0) {
303 result.AppendError("no platform is currently selected\n");
320 // "platform disconnect"
324 : CommandObjectParsed(interpreter, "platform disconnect",
325 "Disconnect from the current platform.",
326 "platform disconnect", 0) {}
366 "\"platform disconnect\" doesn't take any arguments");
369 result.AppendError("no platform is currently selected");
374 // "platform settings"
378 : CommandObjectParsed(interpreter, "platform settings",
379 "Set settings for the current target's platform.",
380 "platform settings", 0),
383 "The working directory for the platform.") {
398 result.AppendError("no platform is currently selected");
412 // "platform mkdir"
416 : CommandObjectParsed(interpreter, "platform mkdir",
445 result.AppendError("no platform currently selected\n");
461 // "platform fopen"
465 : CommandObjectParsed(interpreter, "platform file open",
498 result.AppendError("no platform currently selected\n");
514 // "platform fclose"
518 : CommandObjectParsed(interpreter, "platform file close",
546 result.AppendError("no platform currently selected\n");
551 // "platform fread"
559 : CommandObjectParsed(interpreter, "platform file read",
591 result.AppendError("no platform currently selected\n");
645 // "platform fwrite"
653 : CommandObjectParsed(interpreter, "platform file write",
684 result.AppendError("no platform currently selected\n");
741 interpreter, "platform file",
742 "Commands to access files on the current platform.",
743 "platform file [open|close|read|write] ...") {
763 // "platform get-file remote-file-path host-file-path"
768 interpreter, "platform get-file",
770 "platform get-file <remote-file-spec> <local-file-spec>", 0) {
774 (lldb) platform get-file /the/remote/file/path /the/local/file/path
840 result.AppendError("no platform currently selected\n");
845 // "platform get-size remote-file-path"
849 : CommandObjectParsed(interpreter, "platform get-size",
851 "platform get-size <remote-file-spec>", 0) {
855 (lldb) platform get-size /the/remote/file/path
888 result.AppendError("no platform currently selected\n");
893 // "platform get-permissions remote-file-path"
897 : CommandObjectParsed(interpreter, "platform get-permissions",
899 "platform get-permissions <remote-file-spec>", 0) {
903 (lldb) platform get-permissions /the/remote/file/path
935 result.AppendError("no platform currently selected\n");
940 // "platform file-exists remote-file-path"
944 : CommandObjectParsed(interpreter, "platform file-exists",
946 "platform file-exists <remote-file-spec>", 0) {
950 (lldb) platform file-exists /the/remote/file/path
977 result.AppendError("no platform currently selected\n");
982 // "platform put-file"
987 interpreter, "platform put-file",
989 "platform put-file <source> [<destination>]", 0) {
993 (lldb) platform put-file /source/foo.txt /destination/bar.txt
995 (lldb) platform put-file /source/foo.txt
999 Omitting the destination places the file in the platform working directory.)");
1038 result.AppendError("no platform currently selected\n");
1043 // "platform process launch"
1047 : CommandObjectParsed(interpreter, "platform process launch",
1048 "Launch a new process on a remote platform.",
1049 "platform process launch program",
1189 result.AppendError("'platform process launch' uses the current target "
1195 result.AppendError("no platform is selected\n");
1204 // "platform process list"
1213 : CommandObjectParsed(interpreter, "platform process list",
1214 "List processes on a remote platform by name, pid, "
1216 "platform process list", 0) {}
1284 "platform\n",
1288 "no processes were found on the \"{0}\" platform\n",
1309 result.AppendError("no platform is selected\n");
1385 Platform::GetAugmentedArchSpec(platform_sp.get(), option_arg);
1457 // "platform process info"
1462 interpreter, "platform process info",
1464 "platform process info <pid> [<pid> <pid> ...]", 0) {
1518 result.AppendError("no platform is currently selected");
1529 : CommandObjectParsed(interpreter, "platform process attach",
1531 "platform process attach <cmd-options>"),
1563 result.AppendError("no platform is currently selected");
1579 : CommandObjectMultiword(interpreter, "platform process",
1581 "processes on the current platform.",
1582 "platform process [attach|launch|list] ...") {
1604 // "platform shell"
1668 : CommandObjectRaw(interpreter, "platform shell",
1669 "Run a shell command on the current platform.",
1670 "platform shell <shell-command>", 0) {
1689 const bool is_alias = !raw_command_line.contains("platform");
1698 is_alias ? "shell" : "platform shell");
1706 ? Platform::GetHostPlatform()
1736 "error: cannot run remote shell commands without a platform\n");
1738 "error: cannot run remote shell commands without a platform");
1751 // "platform install" - install a target to a remote end
1756 interpreter, "platform target-install",
1758 "platform target-install <local-thing> <remote-sandbox>", 0) {
1778 result.AppendError("platform target-install takes two arguments");
1781 // TODO: move the bulk of this code over to the platform itself
1792 result.AppendError("no platform currently selected");
1807 interpreter, "platform", "Commands to manage and create platforms.",
1808 "platform [connect|disconnect|info|list|status|select] ...") {