Path: blob/main/contrib/llvm-project/lldb/source/Plugins/Architecture/Mips/ArchitectureMips.h
39645 views
//===-- ArchitectureMips.h --------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLDB_SOURCE_PLUGINS_ARCHITECTURE_MIPS_ARCHITECTUREMIPS_H9#define LLDB_SOURCE_PLUGINS_ARCHITECTURE_MIPS_ARCHITECTUREMIPS_H1011#include "lldb/Core/Architecture.h"12#include "lldb/Utility/ArchSpec.h"1314namespace lldb_private {1516class ArchitectureMips : public Architecture {17public:18static llvm::StringRef GetPluginNameStatic() { return "mips"; }19static void Initialize();20static void Terminate();2122llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }2324void OverrideStopInfo(Thread &thread) const override {}2526lldb::addr_t GetBreakableLoadAddress(lldb::addr_t addr,27Target &) const override;2829lldb::addr_t GetCallableLoadAddress(lldb::addr_t load_addr,30AddressClass addr_class) const override;3132lldb::addr_t GetOpcodeLoadAddress(lldb::addr_t load_addr,33AddressClass addr_class) const override;3435private:36Instruction *GetInstructionAtAddress(Target &target,37const Address &resolved_addr,38lldb::addr_t symbol_offset) const;3940static std::unique_ptr<Architecture> Create(const ArchSpec &arch);41ArchitectureMips(const ArchSpec &arch) : m_arch(arch) {}4243ArchSpec m_arch;44};4546} // namespace lldb_private4748#endif // LLDB_SOURCE_PLUGINS_ARCHITECTURE_MIPS_ARCHITECTUREMIPS_H495051