43 lines · c
1//===-- RegisterContextKDP_arm.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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_REGISTERCONTEXTKDP_ARM_H10#define LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_REGISTERCONTEXTKDP_ARM_H11 12#include "Plugins/Process/Utility/RegisterContextDarwin_arm.h"13 14class ThreadKDP;15 16class RegisterContextKDP_arm : public RegisterContextDarwin_arm {17public:18 RegisterContextKDP_arm(ThreadKDP &thread, uint32_t concrete_frame_idx);19 20 ~RegisterContextKDP_arm() override;21 22protected: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 DoReadDBG(lldb::tid_t tid, int flavor, DBG &dbg) override;30 31 int DoWriteGPR(lldb::tid_t tid, int flavor, const GPR &gpr) override;32 33 int DoWriteFPU(lldb::tid_t tid, int flavor, const FPU &fpu) override;34 35 int DoWriteEXC(lldb::tid_t tid, int flavor, const EXC &exc) override;36 37 int DoWriteDBG(lldb::tid_t tid, int flavor, const DBG &dbg) override;38 39 ThreadKDP &m_kdp_thread;40};41 42#endif // LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_REGISTERCONTEXTKDP_ARM_H43