LLDB mainline
ArchitectureArm.h
Go to the documentation of this file.
1//===-- ArchitectureArm.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_ARM_ARCHITECTUREARM_H
10#define LLDB_SOURCE_PLUGINS_ARCHITECTURE_ARM_ARCHITECTUREARM_H
11
13#include "lldb/Target/Thread.h"
14
15namespace lldb_private {
16
18public:
19 static llvm::StringRef GetPluginNameStatic() { return "arm"; }
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 AddressClass addr_class) const override;
29
31 AddressClass addr_class) const override;
32
35 std::shared_ptr<const UnwindPlan> current_unwindplan) override;
36
37private:
38 static std::unique_ptr<Architecture> Create(const ArchSpec &arch);
39 ArchitectureArm() = default;
40};
41
42} // namespace lldb_private
43
44#endif // LLDB_SOURCE_PLUGINS_ARCHITECTURE_ARM_ARCHITECTUREARM_H
An architecture specification class.
Definition ArchSpec.h:31
llvm::StringRef GetPluginName() override
static std::unique_ptr< Architecture > Create(const ArchSpec &arch)
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.
static llvm::StringRef GetPluginNameStatic()
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...
lldb::addr_t GetOpcodeLoadAddress(lldb::addr_t load_addr, AddressClass addr_class) const override
Get load_addr as an opcode for this target.
lldb::UnwindPlanSP GetArchitectureUnwindPlan(lldb_private::Thread &thread, lldb_private::RegisterContextUnwind *regctx, std::shared_ptr< const UnwindPlan > current_unwindplan) override
Return an UnwindPlan that allows architecture-defined rules for finding saved registers,...
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::UnwindPlan > UnwindPlanSP
uint64_t addr_t
Definition lldb-types.h:80