1//===-- ArchitecturePPC64.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_PPC64_ARCHITECTUREPPC64_H
10#define LLDB_SOURCE_PLUGINS_ARCHITECTURE_PPC64_ARCHITECTUREPPC64_H
11
12#include "lldb/Core/Architecture.h"
13
14namespace lldb_private {
15
16class ArchitecturePPC64 : public Architecture {
17public:
18 static llvm::StringRef GetPluginNameStatic() { return "ppc64"; }
19 static void Initialize();
20 static void Terminate();
21
22 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
23
24 void OverrideStopInfo(Thread &thread) const override {}
25
26 /// This method compares current address with current function's
27 /// local entry point, returning the bytes to skip if they match.
28 size_t GetBytesToSkip(Symbol &func, const Address &curr_addr) const override;
29
30 void AdjustBreakpointAddress(const Symbol &func,
31 Address &addr) const override;
32
33private:
34 static std::unique_ptr<Architecture> Create(const ArchSpec &arch);
35 ArchitecturePPC64() = default;
36};
37
38} // namespace lldb_private
39
40#endif // LLDB_SOURCE_PLUGINS_ARCHITECTURE_PPC64_ARCHITECTUREPPC64_H
41

source code of lldb/source/Plugins/Architecture/PPC64/ArchitecturePPC64.h