Lines Matching full:platform

22 #include "lldb/Target/Platform.h"
141 // "platform select <platform-name>"
145 : CommandObjectParsed(interpreter, "platform select", in CommandObjectPlatformSelect()
146 "Create a platform if needed and select it as the " in CommandObjectPlatformSelect()
147 "current platform.", in CommandObjectPlatformSelect()
148 "platform select <platform-name>", 0), in CommandObjectPlatformSelect()
150 false) // Don't include the "--platform" option by passing false in CommandObjectPlatformSelect()
187 result.AppendError("invalid platform name"); in DoExecute()
191 "platform create takes a platform name as an argument\n"); in DoExecute()
200 // "platform list"
204 : CommandObjectParsed(interpreter, "platform list", in CommandObjectPlatformList()
215 PlatformSP host_platform_sp(Platform::GetHostPlatform()); in DoExecute()
238 // "platform status"
242 : CommandObjectParsed(interpreter, "platform status", in CommandObjectPlatformStatus()
243 "Display status for the current platform.", nullptr, in CommandObjectPlatformStatus()
264 result.AppendError("no platform is currently selected\n"); in DoExecute()
270 // "platform connect <connect-url>"
275 interpreter, "platform connect", in CommandObjectPlatformConnect()
276 "Select the current platform by providing a connection URL.", in CommandObjectPlatformConnect()
277 "platform connect <connect-url>", 0) { in CommandObjectPlatformConnect()
304 result.AppendError("no platform is currently selected\n"); in DoExecute()
322 // "platform disconnect"
326 : CommandObjectParsed(interpreter, "platform disconnect", in CommandObjectPlatformDisconnect()
327 "Disconnect from the current platform.", in CommandObjectPlatformDisconnect()
328 "platform disconnect", 0) {} in CommandObjectPlatformDisconnect()
368 "\"platform disconnect\" doesn't take any arguments"); in DoExecute()
371 result.AppendError("no platform is currently selected"); in DoExecute()
377 // "platform settings"
381 : CommandObjectParsed(interpreter, "platform settings", in CommandObjectPlatformSettings()
382 "Set settings for the current target's platform.", in CommandObjectPlatformSettings()
383 "platform settings", 0), in CommandObjectPlatformSettings()
387 "The working directory for the platform.") { in CommandObjectPlatformSettings()
402 result.AppendError("no platform is currently selected"); in DoExecute()
417 // "platform mkdir"
421 : CommandObjectParsed(interpreter, "platform mkdir", in CommandObjectPlatformMkDir()
451 result.AppendError("no platform currently selected\n"); in DoExecute()
468 // "platform fopen"
472 : CommandObjectParsed(interpreter, "platform file open", in CommandObjectPlatformFOpen()
515 result.AppendError("no platform currently selected\n"); in DoExecute()
532 // "platform fclose"
536 : CommandObjectParsed(interpreter, "platform file close", in CommandObjectPlatformFClose()
565 result.AppendError("no platform currently selected\n"); in DoExecute()
571 // "platform fread"
579 : CommandObjectParsed(interpreter, "platform file read", in CommandObjectPlatformFRead()
612 result.AppendError("no platform currently selected\n"); in DoExecute()
667 // "platform fwrite"
675 : CommandObjectParsed(interpreter, "platform file write", in CommandObjectPlatformFWrite()
707 result.AppendError("no platform currently selected\n"); in DoExecute()
765 interpreter, "platform file", in CommandObjectPlatformFile()
766 "Commands to access files on the current platform.", in CommandObjectPlatformFile()
767 "platform file [open|close|read|write] ...") { in CommandObjectPlatformFile()
787 // "platform get-file remote-file-path host-file-path"
792 interpreter, "platform get-file", in CommandObjectPlatformGetFile()
794 "platform get-file <remote-file-spec> <local-file-spec>", 0) { in CommandObjectPlatformGetFile()
798 (lldb) platform get-file /the/remote/file/path /the/local/file/path in CommandObjectPlatformGetFile()
865 result.AppendError("no platform currently selected\n"); in DoExecute()
871 // "platform get-size remote-file-path"
875 : CommandObjectParsed(interpreter, "platform get-size", in CommandObjectPlatformGetSize()
877 "platform get-size <remote-file-spec>", 0) { in CommandObjectPlatformGetSize()
881 (lldb) platform get-size /the/remote/file/path in CommandObjectPlatformGetSize()
936 result.AppendError("no platform currently selected\n"); in DoExecute()
942 // "platform get-permissions remote-file-path"
946 : CommandObjectParsed(interpreter, "platform get-permissions", in CommandObjectPlatformGetPermissions()
948 "platform get-permissions <remote-file-spec>", 0) { in CommandObjectPlatformGetPermissions()
952 (lldb) platform get-permissions /the/remote/file/path in CommandObjectPlatformGetPermissions()
1006 result.AppendError("no platform currently selected\n"); in DoExecute()
1012 // "platform file-exists remote-file-path"
1016 : CommandObjectParsed(interpreter, "platform file-exists", in CommandObjectPlatformFileExists()
1018 "platform file-exists <remote-file-spec>", 0) { in CommandObjectPlatformFileExists()
1022 (lldb) platform file-exists /the/remote/file/path in CommandObjectPlatformFileExists()
1071 result.AppendError("no platform currently selected\n"); in DoExecute()
1077 // "platform put-file"
1082 interpreter, "platform put-file", in CommandObjectPlatformPutFile()
1084 "platform put-file <source> [<destination>]", 0) { in CommandObjectPlatformPutFile()
1088 (lldb) platform put-file /source/foo.txt /destination/bar.txt in CommandObjectPlatformPutFile()
1090 (lldb) platform put-file /source/foo.txt in CommandObjectPlatformPutFile()
1094 Omitting the destination places the file in the platform working directory.)"); in CommandObjectPlatformPutFile()
1134 result.AppendError("no platform currently selected\n"); in DoExecute()
1140 // "platform process launch"
1144 : CommandObjectParsed(interpreter, "platform process launch", in CommandObjectPlatformProcessLaunch()
1145 "Launch a new process on a remote platform.", in CommandObjectPlatformProcessLaunch()
1146 "platform process launch program", in CommandObjectPlatformProcessLaunch()
1214 result.AppendError("'platform process launch' uses the current target " in DoExecute()
1220 result.AppendError("no platform is selected\n"); in DoExecute()
1229 // "platform process list"
1238 : CommandObjectParsed(interpreter, "platform process list", in CommandObjectPlatformProcessList()
1239 "List processes on a remote platform by name, pid, " in CommandObjectPlatformProcessList()
1241 "platform process list", 0) {} in CommandObjectPlatformProcessList()
1309 "platform\n", in DoExecute()
1313 "no processes were found on the \"{0}\" platform\n", in DoExecute()
1334 result.AppendError("no platform is selected\n"); in DoExecute()
1411 Platform::GetAugmentedArchSpec(platform_sp.get(), option_arg); in SetOptionValue()
1483 // "platform process info"
1488 interpreter, "platform process info", in CommandObjectPlatformProcessInfo()
1490 "platform process info <pid> [<pid> <pid> ...]", 0) { in CommandObjectPlatformProcessInfo()
1564 result.AppendError("no platform is currently selected"); in DoExecute()
1637 : CommandObjectParsed(interpreter, "platform process attach", in CommandObjectPlatformProcessAttach()
1639 "platform process attach <cmd-options>") {} in CommandObjectPlatformProcessAttach()
1657 result.AppendError("no platform is currently selected"); in DoExecute()
1672 : CommandObjectMultiword(interpreter, "platform process", in CommandObjectPlatformProcess()
1674 "processes on the current platform.", in CommandObjectPlatformProcess()
1675 "platform process [attach|launch|list] ...") { in CommandObjectPlatformProcess()
1697 // "platform shell"
1761 : CommandObjectRaw(interpreter, "platform shell", in CommandObjectPlatformShell()
1762 "Run a shell command on the current platform.", in CommandObjectPlatformShell()
1763 "platform shell <shell-command>", 0) { in CommandObjectPlatformShell()
1783 const bool is_alias = !raw_command_line.contains("platform"); in DoExecute()
1792 is_alias ? "shell" : "platform shell"); in DoExecute()
1800 ? Platform::GetHostPlatform() in DoExecute()
1830 "error: cannot run remote shell commands without a platform\n"); in DoExecute()
1832 "error: cannot run remote shell commands without a platform"); in DoExecute()
1846 // "platform install" - install a target to a remote end
1851 interpreter, "platform target-install", in CommandObjectPlatformInstall()
1853 "platform target-install <local-thing> <remote-sandbox>", 0) { in CommandObjectPlatformInstall()
1874 result.AppendError("platform target-install takes two arguments"); in DoExecute()
1877 // TODO: move the bulk of this code over to the platform itself in DoExecute()
1888 result.AppendError("no platform currently selected"); in DoExecute()
1904 interpreter, "platform", "Commands to manage and create platforms.", in CommandObjectPlatform()
1905 "platform [connect|disconnect|info|list|status|select] ...") { in CommandObjectPlatform()