]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/source/Plugins/Process/Utility/RegisterContextMach_i386.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[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 #include "RegisterContextDarwin_i386.h"
14
15 class RegisterContextMach_i386 : public RegisterContextDarwin_i386 {
16 public:
17   RegisterContextMach_i386(lldb_private::Thread &thread,
18                            uint32_t concrete_frame_idx);
19
20   virtual ~RegisterContextMach_i386();
21
22 protected:
23   virtual int DoReadGPR(lldb::tid_t tid, int flavor, GPR &gpr);
24
25   int DoReadFPU(lldb::tid_t tid, int flavor, FPU &fpu);
26
27   int DoReadEXC(lldb::tid_t tid, int flavor, EXC &exc);
28
29   int DoWriteGPR(lldb::tid_t tid, int flavor, const GPR &gpr);
30
31   int DoWriteFPU(lldb::tid_t tid, int flavor, const FPU &fpu);
32
33   int DoWriteEXC(lldb::tid_t tid, int flavor, const EXC &exc);
34 };
35
36 #endif // liblldb_RegisterContextMach_i386_h_