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 14 namespace lldb_private { 15 16 class ArchitecturePPC64 : public Architecture { 17 public: 18 static ConstString GetPluginNameStatic(); 19 static void Initialize(); 20 static void Terminate(); 21 22 ConstString GetPluginName() override; 23 uint32_t GetPluginVersion() override; 24 OverrideStopInfo(Thread & thread)25 void OverrideStopInfo(Thread &thread) const override {} 26 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; 30 31 void AdjustBreakpointAddress(const Symbol &func, 32 Address &addr) const override; 33 34 private: 35 static std::unique_ptr<Architecture> Create(const ArchSpec &arch); 36 ArchitecturePPC64() = default; 37 }; 38 39 } // namespace lldb_private 40 41 #endif // LLDB_SOURCE_PLUGINS_ARCHITECTURE_PPC64_ARCHITECTUREPPC64_H 42