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