1 //===-- RegisterContextKDP_i386.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_PROCESS_MACOSX_KERNEL_REGISTERCONTEXTKDP_I386_H 10 #define LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_REGISTERCONTEXTKDP_I386_H 11 12 #include "Plugins/Process/Utility/RegisterContextDarwin_i386.h" 13 14 class ThreadKDP; 15 16 class RegisterContextKDP_i386 : public RegisterContextDarwin_i386 { 17 public: 18 RegisterContextKDP_i386(ThreadKDP &thread, uint32_t concrete_frame_idx); 19 20 ~RegisterContextKDP_i386() override; 21 22 protected: 23 int DoReadGPR(lldb::tid_t tid, int flavor, GPR &gpr) override; 24 25 int DoReadFPU(lldb::tid_t tid, int flavor, FPU &fpu) override; 26 27 int DoReadEXC(lldb::tid_t tid, int flavor, EXC &exc) override; 28 29 int DoWriteGPR(lldb::tid_t tid, int flavor, const GPR &gpr) override; 30 31 int DoWriteFPU(lldb::tid_t tid, int flavor, const FPU &fpu) override; 32 33 int DoWriteEXC(lldb::tid_t tid, int flavor, const EXC &exc) override; 34 35 ThreadKDP &m_kdp_thread; 36 }; 37 38 #endif // LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_REGISTERCONTEXTKDP_I386_H 39