Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / source / Plugins / Process / MacOSX-Kernel / RegisterContextKDP_x86_64.h
blob8e837c0630ab00ca51bb08e62109097e6b1771f3
1 //===-- RegisterContextKDP_x86_64.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 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_REGISTERCONTEXTKDP_X86_64_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_REGISTERCONTEXTKDP_X86_64_H
12 #include "Plugins/Process/Utility/RegisterContextDarwin_x86_64.h"
14 class ThreadKDP;
16 class RegisterContextKDP_x86_64 : public RegisterContextDarwin_x86_64 {
17 public:
18 RegisterContextKDP_x86_64(ThreadKDP &thread, uint32_t concrete_frame_idx);
20 ~RegisterContextKDP_x86_64() override;
22 protected:
23 int DoReadGPR(lldb::tid_t tid, int flavor, GPR &gpr) override;
25 int DoReadFPU(lldb::tid_t tid, int flavor, FPU &fpu) override;
27 int DoReadEXC(lldb::tid_t tid, int flavor, EXC &exc) override;
29 int DoWriteGPR(lldb::tid_t tid, int flavor, const GPR &gpr) override;
31 int DoWriteFPU(lldb::tid_t tid, int flavor, const FPU &fpu) override;
33 int DoWriteEXC(lldb::tid_t tid, int flavor, const EXC &exc) override;
35 ThreadKDP &m_kdp_thread;
38 #endif // LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_REGISTERCONTEXTKDP_X86_64_H