llvm-project/lldb/source/Plugins/Platform/WebAssembly/PlatformWasmRemoteGDBServer.cpp
Jonas Devlieghere 4191b0cd0f
[lldb] Make PlatformWasm a RemoteAwarePlatform (#175263)
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).
2026-01-12 09:26:37 -08:00

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";
}