You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
49 lines
1.4 KiB
//===-- DynamicLoaderWasmDYLD.h ---------------------------------*- 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef liblldb_Plugins_DynamicLoaderWasmDYLD_h_
|
|
#define liblldb_Plugins_DynamicLoaderWasmDYLD_h_
|
|
|
|
#include "lldb/Target/DynamicLoader.h"
|
|
|
|
namespace lldb_private {
|
|
namespace wasm {
|
|
|
|
class DynamicLoaderWasmDYLD : public DynamicLoader {
|
|
public:
|
|
DynamicLoaderWasmDYLD(Process *process);
|
|
|
|
static void Initialize();
|
|
static void Terminate() {}
|
|
|
|
static ConstString GetPluginNameStatic();
|
|
static const char *GetPluginDescriptionStatic();
|
|
|
|
static DynamicLoader *CreateInstance(Process *process, bool force);
|
|
|
|
/// DynamicLoader
|
|
/// \{
|
|
void DidAttach() override;
|
|
void DidLaunch() override {}
|
|
Status CanLoadImage() override { return Status(); }
|
|
lldb::ThreadPlanSP GetStepThroughTrampolinePlan(Thread &thread,
|
|
bool stop) override;
|
|
/// \}
|
|
|
|
/// PluginInterface protocol.
|
|
/// \{
|
|
ConstString GetPluginName() override { return GetPluginNameStatic(); }
|
|
uint32_t GetPluginVersion() override { return 1; }
|
|
/// \}
|
|
};
|
|
|
|
} // namespace wasm
|
|
} // namespace lldb_private
|
|
|
|
#endif // liblldb_Plugins_DynamicLoaderWasmDYLD_h_
|