This PR makes `PlatformWasm` a `RemoteAwarePlatform` that can connect to a remote GDB platform server. `PlatformWasmRemoteGDBServer` inherits from `PlatformRemoteGDBServer`, with the only difference that it picks the correct Process plugin when launching and attaching. The approach is identical to the one taken by `PlatformAndroid`. The context is that we're working on a platform based approach for discovering and attaching Wasm processes running under JSC with the [newly added debugging support](https://github.com/WebKit/WebKit/pull/51462).
19 lines
609 B
C++
19 lines
609 B
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "PlatformWasmRemoteGDBServer.h"
|
|
|
|
using namespace lldb_private;
|
|
|
|
PlatformWasmRemoteGDBServer::~PlatformWasmRemoteGDBServer() {}
|
|
|
|
llvm::StringRef
|
|
PlatformWasmRemoteGDBServer::GetDefaultProcessPluginName() const {
|
|
return "wasm";
|
|
}
|