RegisterContextKDP_x86_64.h
1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//===-- RegisterContextKDP_x86_64.h -----------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_REGISTERCONTEXTKDP_X86_64_H
#define LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_REGISTERCONTEXTKDP_X86_64_H
#include "Plugins/Process/Utility/RegisterContextDarwin_x86_64.h"
class ThreadKDP;
class RegisterContextKDP_x86_64 : public RegisterContextDarwin_x86_64 {
public:
RegisterContextKDP_x86_64(ThreadKDP &thread, uint32_t concrete_frame_idx);
virtual ~RegisterContextKDP_x86_64();
protected:
int DoReadGPR(lldb::tid_t tid, int flavor, GPR &gpr) override;
int DoReadFPU(lldb::tid_t tid, int flavor, FPU &fpu) override;
int DoReadEXC(lldb::tid_t tid, int flavor, EXC &exc) override;
int DoWriteGPR(lldb::tid_t tid, int flavor, const GPR &gpr) override;
int DoWriteFPU(lldb::tid_t tid, int flavor, const FPU &fpu) override;
int DoWriteEXC(lldb::tid_t tid, int flavor, const EXC &exc) override;
ThreadKDP &m_kdp_thread;
};
#endif // LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_REGISTERCONTEXTKDP_X86_64_H