]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/llvm/tools/lldb/source/Plugins/Process/Utility/RegisterContextMach_x86_64.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / llvm / tools / lldb / source / Plugins / Process / Utility / RegisterContextMach_x86_64.h
1 //===-- RegisterContextMach_x86_64.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_x86_64_h_
11 #define liblldb_RegisterContextMach_x86_64_h_
12
13 // C Includes
14 // C++ Includes
15 // Other libraries and framework includes
16 // Project includes
17 #include "RegisterContextDarwin_x86_64.h"
18
19 class RegisterContextMach_x86_64 : public RegisterContextDarwin_x86_64
20 {
21 public:
22     
23     RegisterContextMach_x86_64(lldb_private::Thread &thread, uint32_t concrete_frame_idx);
24     
25     virtual
26     ~RegisterContextMach_x86_64();
27     
28 protected:
29     
30     virtual int
31     DoReadGPR (lldb::tid_t tid, int flavor, GPR &gpr);
32     
33     int
34     DoReadFPU (lldb::tid_t tid, int flavor, FPU &fpu);
35     
36     int
37     DoReadEXC (lldb::tid_t tid, int flavor, EXC &exc);
38     
39     int
40     DoWriteGPR (lldb::tid_t tid, int flavor, const GPR &gpr);
41     
42     int
43     DoWriteFPU (lldb::tid_t tid, int flavor, const FPU &fpu);
44     
45     int
46     DoWriteEXC (lldb::tid_t tid, int flavor, const EXC &exc);
47 };
48
49 #endif  // liblldb_RegisterContextMach_x86_64_h_