LLDB mainline
ArchitecturePPC64.h
Go to the documentation of this file.
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
13
14namespace lldb_private {
15
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
A section + offset based address class.
Definition: Address.h:62
An architecture specification class.
Definition: ArchSpec.h:31
llvm::StringRef GetPluginName() override
size_t GetBytesToSkip(Symbol &func, const Address &curr_addr) const override
This method compares current address with current function's local entry point, returning the bytes t...
static llvm::StringRef GetPluginNameStatic()
static std::unique_ptr< Architecture > Create(const ArchSpec &arch)
void OverrideStopInfo(Thread &thread) const override
This is currently intended to handle cases where a program stops at an instruction that won't get exe...
void AdjustBreakpointAddress(const Symbol &func, Address &addr) const override
Adjust function breakpoint address, if needed.
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14