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_PLUGIN_ARCHITECTURE_ARM_H
10#define LLDB_PLUGIN_ARCHITECTURE_ARM_H
11
12#include "lldb/Core/Architecture.h"
13
14namespace lldb_private {
15
16class ArchitectureArm : public Architecture {
17public:
18  static ConstString GetPluginNameStatic();
19  static void Initialize();
20  static void Terminate();
21
22  ConstString GetPluginName() override;
23  uint32_t GetPluginVersion() override;
24
25  void OverrideStopInfo(Thread &thread) const override;
26
27  lldb::addr_t GetCallableLoadAddress(lldb::addr_t load_addr,
28                                      AddressClass addr_class) const override;
29
30  lldb::addr_t GetOpcodeLoadAddress(lldb::addr_t load_addr,
31                                    AddressClass addr_class) const override;
32
33private:
34  static std::unique_ptr<Architecture> Create(const ArchSpec &arch);
35  ArchitectureArm() = default;
36};
37
38} // namespace lldb_private
39
40#endif // LLDB_PLUGIN_ARCHITECTURE_ARM_H
41