/llvm-project/lldb/docs/use/ |
H A D | remote.rst | 15 LLDB also consists of a platform binary, which is responsible for performing 23 debugging this whole process is transparent to the user. The platform binary is 39 lldb-server binary. This binary combines the functionality of the platform and 55 platform mode and specify the port it should listen on. For example, the 60 remote% lldb-server platform --listen "*:1234" --server 62 will start the LLDB platform and wait for incoming connections from any address 72 debugging. This is achieved through the platform command and its sub-commands. 73 As a first step you need to choose the correct platform plug-in for your remote 74 system. A list of available plug-ins can be obtained through platform list. 79 (lldb) platform list [all …]
|
/llvm-project/compiler-rt/cmake/ |
H A D | config-ix.cmake | 233 # platform. We use the results of these tests to build only the various target 239 # Detect whether the current target platform is 32-bit or 64-bit, and setup 315 # specific apple platform and architecture. 316 function(get_test_cflags_for_apple_platform platform arch cflags_out) 317 is_valid_apple_platform("${platform}" is_valid_platform) 319 message(FATAL_ERROR "\"${platform}\" is not a valid apple platform") 325 list(APPEND test_cflags ${DARWIN_${platform}_CFLAGS}) 333 foreach (flag ${DARWIN_${platform}_CFLAGS}) 334 if ("${flag}" MATCHES "^${DARWIN_${platform}_MIN_VER_FLA [all...] |
H A D | builtin-config-ix.cmake | 202 foreach(platform ${DARWIN_EMBEDDED_PLATFORMS}) 203 if(DARWIN_${platform}sim_SYSROOT) 204 set(DARWIN_${platform}sim_BUILTIN_MIN_VER 205 ${DARWIN_${platform}_BUILTIN_MIN_VER}) 206 set(DARWIN_${platform}sim_BUILTIN_MIN_VER_FLAG 207 ${DARWIN_${platform}_BUILTIN_MIN_VER_FLAG}) 209 set(DARWIN_${platform}sim_SKIP_CC_KEXT On) 211 darwin_test_archs(${platform}sim 212 DARWIN_${platform}sim_BUILTIN_ARCHS 213 ${DARWIN_${platform}sim_BUILTIN_ALL_POSSIBLE_ARCH [all...] |
/llvm-project/lldb/source/Target/ |
H A D | Platform.cpp | 1 //===-- Platform.cpp ------------------------------------------------------===// 32 #include "lldb/Target/Platform.h" 61 const char *Platform::GetHostPlatformName() { return "host"; } in GetHostPlatformName() 76 static constexpr llvm::StringLiteral g_setting_name("platform"); in GetSettingName() 126 /// Get the native host platform plug-in. 132 /// This platform will be used as the default platform when launching 133 /// or attaching to processes unless another platform is specified. 134 PlatformSP Platform::GetHostPlatform() { return GetHostPlatformSP(); } in GetHostPlatform() 136 void Platform 227 GetAugmentedArchSpec(Platform * platform,llvm::StringRef triple) GetAugmentedArchSpec() argument 234 Platform::Platform(bool is_host) Platform() function in Platform 2193 if (PlatformSP platform = GetOrCreate(arch, process_host_arch, nullptr)) GetOrCreate() local [all...] |
H A D | RemoteAwarePlatform.cpp | 37 // The host platform can resolve the path more aggressively. in ResolveExecutable() 54 return Platform::ResolveExecutable(resolved_module_spec, exe_module_sp, 74 return Platform::RunShellCommand(shell, command, working_dir, status_ptr, 82 return Platform::MakeDirectory(file_spec, file_permissions); in GetFilePermissions() 90 return Platform::GetFilePermissions(file_spec, file_permissions); in SetFilePermissions() 98 return Platform::SetFilePermissions(file_spec, file_permissions); in OpenFile() 106 return Platform::OpenFile(file_spec, flags, mode, error); in CloseFile() 112 return Platform::CloseFile(fd, error); in ReadFile() 120 return Platform::ReadFile(fd, offset, dst, dst_len, error); in WriteFile() 128 return Platform [all...] |
/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectPlatform.cpp | 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 nam in DoExecute() [all...] |
/llvm-project/lldb/test/API/commands/platform/basic/ |
H A D | TestPlatformPython.py | 2 Test the lldb platform Python API. 17 # Verify the host platform is present by default. 23 "The host platform is present", 25 # Select another platform and verify that the platform is added to 26 # the platform list. 40 platform = self.dbg.GetPlatformAtIndex(platform_idx) 41 if platform.GetName() == platform_name: 49 # We've already tested that this one IS the host platform. 52 host_platform.IsConnected(), "The host platform is always connected" 61 num_platforms, 0, "There should be at least one platform available" [all …]
|
H A D | TestPlatformCommand.py | 2 Test some lldb platform commands. 17 self.runCmd("help platform") 29 # "platform shell" has options. The "shell" alias for it does not. 34 self.expect("platform list", patterns=["^Available platforms:"]) 38 self.expect("platform process list", substrs=["PID", "TRIPLE", "NAME"]) 44 "platform process info", 52 "platform status", 54 "Platform", 65 """Test that the platform shell command can invoke ls.""" 68 self.expect("platform shell dir c:\\", substrs=["Windows", "Program Files"]) [all …]
|
/llvm-project/lldb/test/API/functionalities/gdb_remote_client/ |
H A D | TestGDBRemotePlatformFile.py | 25 "platform file open /some/file.txt -v 0755", [r"File Descriptor = 16"] 28 "platform file read 16 -o 11 -c 13", 31 self.match("platform file write 16 -o 11 -d teststring", [r"Return = 10"]) 32 self.match("platform file close 16", [r"file 16 closed."]) 54 "platform file open /some/file.txt -v 0755", 59 "platform file read 16 -o 11 -c 13", 64 "platform file write 16 -o 11 -d teststring", 68 self.match("platform file close 16", [enosys_regex], error=True) 79 """Test 'platform get-size'""" 88 "platform ge [all...] |
/llvm-project/clang/test/OpenMP/ |
H A D | linking.c | 7 // RUN: -fopenmp -target i386-unknown-linux -rtlib=platform --unwindlib=platform \ 14 // RUN: -fopenmp -target x86_64-unknown-linux -rtlib=platform --unwindlib=platform \ 21 // RUN: -fopenmp=libgomp -target i386-unknown-linux -rtlib=platform --unwindlib=platform \ 24 … -o %t.o 2>&1 -fopenmp-simd -target i386-unknown-linux -rtlib=platform --unwindlib=platform | File… 32 … -o %t.o 2>&1 -fopenmp-simd -target i386-unknown-linux -rtlib=platform --unwindlib=platform | File… 38 // RUN: -fopenmp=libgomp -target x86_64-unknown-linux -rtlib=platform --unwindlib=platform \ 45 // RUN: -fopenmp -target i386-unknown-linux -rtlib=platform --unwindlib=platform \ 52 // RUN: -fopenmp -target x86_64-unknown-linux -rtlib=platform --unwindlib=platform \ 70 // RUN: -rtlib=platform --unwindlib=platform \ 78 // RUN: -rtlib=platform --unwindlib=platform \ [all …]
|
/llvm-project/lldb/include/lldb/Target/ |
H A D | Platform.h | 1 //===-- Platform.h ----------------------------------------------*- C++ -*-===// 65 /// \class Platform Platform.h "lldb/Target/Platform.h" 66 /// A plug-in interface definition class for debug platform that 67 /// includes many platform abilities such as: 68 /// \li getting platform information such as supported architectures, 75 /// \li attaching and possibly debugging the platform's kernel 76 class Platform : public PluginInterface { 79 Platform(boo [all...] |
/llvm-project/llvm/lib/TextAPI/ |
H A D | Platform.cpp | 1 //===- llvm/TextAPI/Platform.cpp - Platform ---------------------*- C++ -*-===// 9 // Implementations of Platform Helper functions. 13 #include "llvm/TextAPI/Platform.h" 21 PlatformType mapToPlatformType(PlatformType Platform, bool WantSim) { in mapToPlatformType() argument 22 switch (Platform) { in mapToPlatformType() 24 return Platform; in mapToPlatformType() 69 StringRef getPlatformName(PlatformType Platform) { in getPlatformName() argument 70 switch (Platform) { in getPlatformName() 71 #define PLATFORM(platform, id, name, build_name, target, tapi_target, \ in getPlatformName() macro 73 case PLATFORM_##platform: \ in getPlatformName() [all …]
|
H A D | Target.cpp | 22 PlatformType Platform; in create() local 23 Platform = StringSwitch<PlatformType>(PlatformStr) in create() 24 #define PLATFORM(platform, id, name, build_name, target, tapi_target, \ in create() macro 26 .Case(#tapi_target, PLATFORM_##platform) in create() 30 if (Platform == PLATFORM_UNKNOWN) { in create() 35 Platform = (PlatformType)RawValue; in create() 39 return Target{Architecture, Platform}; in create() 45 return (getArchitectureName(Arch) + " (" + getPlatformName(Platform) + in operator std::string() 58 Result.insert({Target.Platform, Target.MinDeployment}); in mapToPlatformVersionSet() 65 Result.insert(Target.Platform); in mapToPlatformSet() [all …]
|
/llvm-project/clang/test/Driver/ |
H A D | miamcu-opt.c | 1 // RUN: %clang -### --target=x86_64 -miamcu -rtlib=platform --unwindlib=platform %s 2>&1 | FileChec… 2 // RUN: %clang -### --target=x86_64 -miamcu -rtlib=platform --unwindlib=platform -m32 %s 2>&1 | Fil… 3 // RUN: %clang -### --target=x86_64 -miamcu -rtlib=platform --unwindlib=platform --target=x86_64-un… 4 // RUN: %clang -### --target=x86_64 -mno-iamcu -miamcu -rtlib=platform --unwindlib=platform %s 2>&1… 5 // RUN: not %clang -### --target=x86_64 -miamcu -rtlib=platform --unwindlib=platform -m64 %s 2>&1 |… 6 // RUN: not %clang -### --target=x86_64 -miamcu -rtlib=platform --unwindlib=platform -dynamic %s 2>… 7 // RUN: not %clang -### --target=x86_64 -miamcu -rtlib=platform --unwindlib=platform --target=armv…
|
H A D | mingw-libgcc.c | 5 // RUN: %clang -v --target=i686-pc-windows-gnu -rtlib=platform -### %s 2>&1 | FileCheck -check-pref… 6 // RUN: %clang -static -v --target=i686-pc-windows-gnu -rtlib=platform -### %s 2>&1 | FileCheck -ch… 7 // RUN: %clang -static-libgcc -v --target=i686-pc-windows-gnu -rtlib=platform -### %s 2>&1 | FileCh… 8 // RUN: %clang -static -shared -v --target=i686-pc-windows-gnu -rtlib=platform -### %s 2>&1 | FileC… 9 // RUN: %clang -static-libgcc -shared -v --target=i686-pc-windows-gnu -rtlib=platform -### %s 2>&1 … 12 // RUN: %clang -shared -v --target=i686-pc-windows-gnu -rtlib=platform -### %s 2>&1 | FileCheck -ch… 15 // RUN: %clang -static --driver-mode=g++ -v --target=i686-pc-windows-gnu -rtlib=platform -### %s 2>… 16 // RUN: %clang -static-libgcc --driver-mode=g++ -v --target=i686-pc-windows-gnu -rtlib=platform -##… 17 // RUN: %clang -static -shared --driver-mode=g++ -v --target=i686-pc-windows-gnu -rtlib=platform -#… 18 …libgcc -shared --driver-mode=g++ -v --target=i686-pc-windows-gnu -rtlib=platform -### %s 2>&1 | Fi… [all …]
|
/llvm-project/llvm/utils/gn/ |
H A D | get.py | 27 import platform 29 if sys.platform == "darwin": 30 return "mac-amd64" if platform.machine() != "arm64" else "mac-arm64" 31 if platform.machine() not in ("AMD64", "x86_64"): 33 if sys.platform.startswith("linux"): 35 if sys.platform == "win32": 40 platform = get_platform() 41 if not platform: 42 print("no prebuilt binary for", sys.platform) 49 dirname = os.path.join(os.path.dirname(__file__), "bin", platform) [all …]
|
/llvm-project/lldb/packages/Python/lldbsuite/test/ |
H A D | lldbplatformutil.py | 2 architecture and/or the platform dependent nature of the tests. """ 98 # Provide uname-like platform name 124 # Use the triple to determine the platform if set. 127 platform = triple.split("-")[2] 128 if platform.startswith("freebsd"): 129 platform = "freebsd" 130 elif platform.startswith("netbsd"): 131 platform = "netbsd" 132 elif platform.startswith("openbsd"): 133 platform [all...] |
/llvm-project/compiler-rt/test/asan_abi/ |
H A D | CMakeLists.txt | 41 foreach(platform ${ASAN_ABI_TEST_APPLE_PLATFORMS}) 42 if ("${platform}" STREQUAL "osx") 47 ASAN_ABI_TEST_${platform}_ARCHS 49 DARWIN_${platform}_ARCHS 51 foreach(arch ${ASAN_ABI_TEST_${platform}_ARCHS}) 53 "${platform}" 58 get_capitalized_apple_platform("${platform}" PLATFORM_CAPITALIZED) 60 set(ASAN_ABI_TEST_CONFIG_SUFFIX "-${arch}-${platform}") 61 set(ASAN_ABI_TEST_APPLE_PLATFORM "${platform}") 63 set(ASAN_ABI_TEST_MIN_DEPLOYMENT_TARGET_FLAG "${DARWIN_${platform}_MIN_VER_FLAG}") [all …]
|
/llvm-project/llvm/include/llvm/BinaryFormat/ |
H A D | MachO.def | 123 #ifdef PLATFORM 124 // PLATFORM(platform, id, name, build_name, target, tapi_target, marketing) 125 PLATFORM(UNKNOWN, 0, unknown, unknown, unknown, unknown, unknown) 126 PLATFORM(MACOS, 1, macos, macos, macos, macos, macOS) 127 PLATFORM(IOS, 2, ios, ios, ios, ios, iOS) 128 PLATFORM(TVOS, 3, tvos, tvos, tvos, tvos, tvOS) 129 PLATFORM(WATCHOS, 4, watchos, watchos, watchos, watchos, watchOS) 130 PLATFORM(BRIDGEOS, 5, bridgeos, bridgeos, bridgeos, bridgeos, bridgeOS) 131 PLATFORM(MACCATALYST, 6, macCatalyst, macCatalyst, ios-macabi, maccatalyst, macCatalyst) 132 PLATFORM(IOSSIMULATOR, 7, iossimulator, iossimulator, ios-simulator, ios-simulator, iOS Simulator) [all …]
|
/llvm-project/llvm/unittests/TextAPI/ |
H A D | TextStubV2Tests.cpp | 46 "platform: ios\n" in TEST() 76 auto Platform = PLATFORM_IOS; in TEST() local 79 Targets.emplace_back(Target(arch, Platform)); in TEST() 82 EXPECT_EQ(Platform, *File->getPlatforms().begin()); in TEST() 116 "platform: ios\n" in TEST() 147 auto Platform = PLATFORM_IOS; in TEST() local 150 Targets.emplace_back(Target(arch, Platform)); in TEST() 153 EXPECT_EQ(Platform, *File->getPlatforms().begin()); in TEST() 169 "platform: macosx\n" in TEST() 222 "platform: macosx\n" in TEST() [all …]
|
H A D | TextStubV1Tests.cpp | 47 "platform: ios\n" in TEST() 75 auto Platform = PLATFORM_IOS; in TEST() local 78 Targets.emplace_back(Target(arch, Platform)); in TEST() 81 EXPECT_EQ(Platform, *File->getPlatforms().begin()); in TEST() 118 "platform: ios\n" in TEST() 128 auto Platform = PLATFORM_IOS; in TEST() local 131 Targets.emplace_back(Target(arch, Platform)); in TEST() 134 EXPECT_EQ(Platform, *File->getPlatforms().begin()); in TEST() 150 "platform: macosx\n" in TEST() 202 "platform: macosx\n" in TEST() [all …]
|
H A D | TextStubV3Tests.cpp | 48 "platform: ios\n" in TEST() 79 auto Platform = PLATFORM_IOS; in TEST() local 82 Targets.emplace_back(Target(arch, Platform)); in TEST() 89 EXPECT_EQ(Platform, *File->getPlatforms().begin()); in TEST() 123 "platform: ios\n" in TEST() 148 "platform: ios\n" in TEST() 163 auto Platform = PLATFORM_IOS; in TEST() local 166 Targets.emplace_back(Target(arch, Platform)); in TEST() 173 EXPECT_EQ(Platform, *File->getPlatforms().begin()); in TEST() 209 EXPECT_EQ(Platform, *Document->getPlatforms().begin()); in TEST() [all …]
|
/llvm-project/lldb/bindings/interface/ |
H A D | SBPlatformDocstrings.i | 2 "Describes how :py:class:`SBPlatform.ConnectRemote` connects to a remote platform." 10 "A class that represents a platform that can represent the current host or a remote host debug plat… 13 It can be connected to a remote platform in order to provide ways 19 platform which allows the SBPlatform to be used to get a list of the 24 Every :py:class:`SBTarget` has a corresponding SBPlatform. The platform can be 25 specified upon target creation, or the currently selected platform 27 as the currently selected platform matches the target architecture 29 a suitable platform will be found automatically."
|
/llvm-project/compiler-rt/test/fuzzer/ |
H A D | CMakeLists.txt | 93 foreach(platform ${FUZZER_APPLE_PLATFORMS}) 94 if ("${platform}" STREQUAL "osx") 99 FUZZER_TEST_${platform}_ARCHS 101 DARWIN_${platform}_ARCHS 103 foreach(arch ${FUZZER_TEST_${platform}_ARCHS}) 105 "${platform}" 110 get_capitalized_apple_platform("${platform}" PLATFORM_CAPITALIZED) 112 set(LIBFUZZER_TEST_CONFIG_SUFFIX "-${arch}-${platform}") 113 set(LIBFUZZER_TEST_APPLE_PLATFORM "${platform}") 115 set(LIBFUZZER_TEST_MIN_DEPLOYMENT_TARGET_FLAG "${DARWIN_${platform}_MIN_VER_FLA [all...] |
/llvm-project/compiler-rt/test/ubsan/ |
H A D | CMakeLists.txt | 69 macro(add_ubsan_device_testsuite test_mode sanitizer platform arch) 72 set(CONFIG_NAME ${UBSAN_LIT_TEST_MODE}-${platform}-${arch}) 77 set(UBSAN_TEST_APPLE_PLATFORM "${platform}") 78 set(UBSAN_TEST_MIN_DEPLOYMENT_TARGET_FLAG "${DARWIN_${platform}_MIN_VER_FLAG}") 88 add_lit_testsuite(check-ubsan-${test_mode}-${platform}-${arch} 108 foreach(platform ${UBSAN_APPLE_PLATFORMS}) 110 UBSAN_TEST_${platform}_ARCHS 112 DARWIN_${platform}_ARCHS 114 foreach(arch ${UBSAN_TEST_${platform}_ARCHS}) 116 "${platform}" [all...] |