LLDB mainline
PlatformEmscripten.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_SOURCE_PLUGINS_PLATFORM_EMSCRIPTEN_PLATFORMEMSCRIPTEN_H
10#define LLDB_SOURCE_PLUGINS_PLATFORM_EMSCRIPTEN_PLATFORMEMSCRIPTEN_H
11
13
15
17public:
18 explicit PlatformEmscripten(bool is_host);
19
20 static void Initialize();
21 static void Terminate();
22
23 static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch);
24
25 static llvm::StringRef GetPluginNameStatic(bool is_host) {
26 return is_host ? Platform::GetHostPlatformName() : "remote-emscripten";
27 }
28
29 static llvm::StringRef GetPluginDescriptionStatic(bool is_host);
30
31 llvm::StringRef GetPluginName() override {
33 }
34
35 llvm::StringRef GetDescription() override {
37 }
38
39 std::vector<ArchSpec>
40 GetSupportedArchitectures(const ArchSpec &process_host_arch) override;
41
42 bool CanDebugProcess() override;
43
44private:
45 std::vector<ArchSpec> m_supported_architectures;
46};
47
48} // namespace lldb_private::platform_emscripten
49
50#endif // LLDB_SOURCE_PLUGINS_PLATFORM_EMSCRIPTEN_PLATFORMEMSCRIPTEN_H
PlatformPOSIX(bool is_host)
Default Constructor.
An architecture specification class.
Definition ArchSpec.h:32
bool IsHost() const
Definition Platform.h:575
static const char * GetHostPlatformName()
Definition Platform.cpp:66
static llvm::StringRef GetPluginDescriptionStatic(bool is_host)
bool CanDebugProcess() override
Not all platforms will support debugging a process by spawning somehow halted for a debugger (specifi...
std::vector< ArchSpec > GetSupportedArchitectures(const ArchSpec &process_host_arch) override
Get the platform's supported architectures in the order in which they should be searched.
static llvm::StringRef GetPluginNameStatic(bool is_host)
static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch)
std::shared_ptr< lldb_private::Platform > PlatformSP