LLDB mainline
ArchitectureMips.h
Go to the documentation of this file.
1//===-- ArchitectureMips.h --------------------------------------*- C++ -*-===//
2//
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
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_SOURCE_PLUGINS_ARCHITECTURE_MIPS_ARCHITECTUREMIPS_H
10#define LLDB_SOURCE_PLUGINS_ARCHITECTURE_MIPS_ARCHITECTUREMIPS_H
11
14
15namespace lldb_private {
16
18public:
19 static llvm::StringRef GetPluginNameStatic() { return "mips"; }
20 static void Initialize();
21 static void Terminate();
22
23 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
24
25 void OverrideStopInfo(Thread &thread) const override {}
26
28 Target &) const override;
29
31 AddressClass addr_class) const override;
32
34 AddressClass addr_class) const override;
35
36private:
38 const Address &resolved_addr,
39 lldb::addr_t symbol_offset) const;
40
41 static std::unique_ptr<Architecture> Create(const ArchSpec &arch);
42 ArchitectureMips(const ArchSpec &arch) : m_arch(arch) {}
43
45};
46
47} // namespace lldb_private
48
49#endif // LLDB_SOURCE_PLUGINS_ARCHITECTURE_MIPS_ARCHITECTUREMIPS_H
A section + offset based address class.
Definition: Address.h:62
An architecture specification class.
Definition: ArchSpec.h:31
lldb::addr_t GetOpcodeLoadAddress(lldb::addr_t load_addr, AddressClass addr_class) const override
Get load_addr as an opcode for this target.
static llvm::StringRef GetPluginNameStatic()
llvm::StringRef GetPluginName() override
Instruction * GetInstructionAtAddress(Target &target, const Address &resolved_addr, lldb::addr_t symbol_offset) const
static std::unique_ptr< Architecture > Create(const ArchSpec &arch)
lldb::addr_t GetBreakableLoadAddress(lldb::addr_t addr, Target &) const override
lldb::addr_t GetCallableLoadAddress(lldb::addr_t load_addr, AddressClass addr_class) const override
Get load_addr as a callable code load address for this target.
ArchitectureMips(const ArchSpec &arch)
void OverrideStopInfo(Thread &thread) const override
This is currently intended to handle cases where a program stops at an instruction that won't get exe...
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
uint64_t addr_t
Definition: lldb-types.h:79