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