Lines Matching full:platform

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