LLDB mainline
ArchitectureAArch64.h
Go to the documentation of this file.
1//===-- ArchitectureAArch64.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_AARCH64_ARCHITECTUREAARCH64_H
10#define LLDB_SOURCE_PLUGINS_ARCHITECTURE_AARCH64_ARCHITECTUREAARCH64_H
11
14
15namespace lldb_private {
16
18public:
19 static llvm::StringRef GetPluginNameStatic() { return "aarch64"; }
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
27 const MemoryTagManager *GetMemoryTagManager() const override {
29 }
30
31 bool
32 RegisterWriteCausesReconfigure(const llvm::StringRef name) const override {
33 // lldb treats svg as read only, so only vg can be written. This results in
34 // the SVE registers changing size.
35 return name == "vg";
36 }
37
39 DataExtractor &reg_data,
40 RegisterContext &reg_context) const override;
41
42private:
43 static std::unique_ptr<Architecture> Create(const ArchSpec &arch);
46};
47
48} // namespace lldb_private
49
50#endif // LLDB_SOURCE_PLUGINS_ARCHITECTURE_AARCH64_ARCHITECTUREAARCH64_H
An architecture specification class.
Definition: ArchSpec.h:31
static llvm::StringRef GetPluginNameStatic()
static std::unique_ptr< Architecture > Create(const ArchSpec &arch)
MemoryTagManagerAArch64MTE m_memory_tag_manager
const MemoryTagManager * GetMemoryTagManager() const override
bool ReconfigureRegisterInfo(DynamicRegisterInfo &reg_info, DataExtractor &reg_data, RegisterContext &reg_context) const override
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...
bool RegisterWriteCausesReconfigure(const llvm::StringRef name) const override
llvm::StringRef GetPluginName() override
An data extractor class.
Definition: DataExtractor.h:48
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14