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_SOURCE_PLUGINS_ARCHITECTURE_PPC64_ARCHITECTUREPPC64_H
10 #define LLDB_SOURCE_PLUGINS_ARCHITECTURE_PPC64_ARCHITECTUREPPC64_H
12 #include "lldb/Core/Architecture.h"
14 namespace lldb_private
{
16 class ArchitecturePPC64
: public Architecture
{
18 static llvm::StringRef
GetPluginNameStatic() { return "ppc64"; }
19 static void Initialize();
20 static void Terminate();
22 llvm::StringRef
GetPluginName() override
{ return GetPluginNameStatic(); }
24 void OverrideStopInfo(Thread
&thread
) const override
{}
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
;
30 void AdjustBreakpointAddress(const Symbol
&func
,
31 Address
&addr
) const override
;
34 static std::unique_ptr
<Architecture
> Create(const ArchSpec
&arch
);
35 ArchitecturePPC64() = default;
38 } // namespace lldb_private
40 #endif // LLDB_SOURCE_PLUGINS_ARCHITECTURE_PPC64_ARCHITECTUREPPC64_H