]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - source/Plugins/Process/Utility/RegisterContextMach_x86_64.h
Vendor import of lldb trunk r290819:
[FreeBSD/FreeBSD.git] / source / Plugins / Process / Utility / RegisterContextMach_x86_64.h
1 //===-- RegisterContextMach_x86_64.h ------------------------------*- C++
2 //-*-===//
3 //
4 //                     The LLVM Compiler Infrastructure
5 //
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
8 //
9 //===----------------------------------------------------------------------===//
10
11 #ifndef liblldb_RegisterContextMach_x86_64_h_
12 #define liblldb_RegisterContextMach_x86_64_h_
13
14 // C Includes
15 // C++ Includes
16 // Other libraries and framework includes
17 // Project includes
18 #include "RegisterContextDarwin_x86_64.h"
19
20 class RegisterContextMach_x86_64 : public RegisterContextDarwin_x86_64 {
21 public:
22   RegisterContextMach_x86_64(lldb_private::Thread &thread,
23                              uint32_t concrete_frame_idx);
24
25   virtual ~RegisterContextMach_x86_64();
26
27 protected:
28   virtual int DoReadGPR(lldb::tid_t tid, int flavor, GPR &gpr);
29
30   int DoReadFPU(lldb::tid_t tid, int flavor, FPU &fpu);
31
32   int DoReadEXC(lldb::tid_t tid, int flavor, EXC &exc);
33
34   int DoWriteGPR(lldb::tid_t tid, int flavor, const GPR &gpr);
35
36   int DoWriteFPU(lldb::tid_t tid, int flavor, const FPU &fpu);
37
38   int DoWriteEXC(lldb::tid_t tid, int flavor, const EXC &exc);
39 };
40
41 #endif // liblldb_RegisterContextMach_x86_64_h_