1 //===-- ArchitecturePPC64.h -------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_PLUGIN_ARCHITECTURE_PPC64_H
11 #define LLDB_PLUGIN_ARCHITECTURE_PPC64_H
13 #include "lldb/Core/Architecture.h"
15 namespace lldb_private {
17 class ArchitecturePPC64 : public Architecture {
19 static ConstString GetPluginNameStatic();
20 static void Initialize();
21 static void Terminate();
23 ConstString GetPluginName() override;
24 uint32_t GetPluginVersion() override;
26 void OverrideStopInfo(Thread &thread) const override {}
28 //------------------------------------------------------------------
29 /// This method compares current address with current function's
30 /// local entry point, returning the bytes to skip if they match.
31 //------------------------------------------------------------------
32 size_t GetBytesToSkip(Symbol &func, const Address &curr_addr) const override;
34 void AdjustBreakpointAddress(const Symbol &func,
35 Address &addr) const override;
38 static std::unique_ptr<Architecture> Create(const ArchSpec &arch);
39 ArchitecturePPC64() = default;
42 } // namespace lldb_private
44 #endif // LLDB_PLUGIN_ARCHITECTURE_PPC64_H