1 //===-- ArchitectureMips.h ---------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_PLUGIN_ARCHITECTURE_MIPS_H
10 #define LLDB_PLUGIN_ARCHITECTURE_MIPS_H
12 #include "lldb/Core/Architecture.h"
13 #include "lldb/Utility/ArchSpec.h"
15 namespace lldb_private {
17 class ArchitectureMips : public Architecture {
19 static ConstString GetPluginNameStatic();
20 static void Initialize();
21 static void Terminate();
23 ConstString GetPluginName() override;
24 uint32_t GetPluginVersion() override;
26 void OverrideStopInfo(Thread &thread) const override {}
28 lldb::addr_t GetBreakableLoadAddress(lldb::addr_t addr,
29 Target &) const override;
31 lldb::addr_t GetCallableLoadAddress(lldb::addr_t load_addr,
32 AddressClass addr_class) const override;
34 lldb::addr_t GetOpcodeLoadAddress(lldb::addr_t load_addr,
35 AddressClass addr_class) const override;
38 Instruction *GetInstructionAtAddress(const ExecutionContext &exe_ctx,
39 const Address &resolved_addr,
40 lldb::addr_t symbol_offset) const;
43 static std::unique_ptr<Architecture> Create(const ArchSpec &arch);
44 ArchitectureMips(const ArchSpec &arch) : m_arch(arch) {}
49 } // namespace lldb_private
51 #endif // LLDB_PLUGIN_ARCHITECTURE_MIPS_H