1 //===-- ArchitecturePPC64.h -------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_PLUGIN_ARCHITECTURE_PPC64_H
10 #define LLDB_PLUGIN_ARCHITECTURE_PPC64_H
12 #include "lldb/Core/Architecture.h"
14 namespace lldb_private {
16 class ArchitecturePPC64 : public Architecture {
18 static ConstString GetPluginNameStatic();
19 static void Initialize();
20 static void Terminate();
22 ConstString GetPluginName() override;
23 uint32_t GetPluginVersion() override;
25 void OverrideStopInfo(Thread &thread) const override {}
27 /// This method compares current address with current function's
28 /// local entry point, returning the bytes to skip if they match.
29 size_t GetBytesToSkip(Symbol &func, const Address &curr_addr) const override;
31 void AdjustBreakpointAddress(const Symbol &func,
32 Address &addr) const override;
35 static std::unique_ptr<Architecture> Create(const ArchSpec &arch);
36 ArchitecturePPC64() = default;
39 } // namespace lldb_private
41 #endif // LLDB_PLUGIN_ARCHITECTURE_PPC64_H