summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Utility/RegisterContextMach_i386.h
blob: ad0f69d1c0522e9f1c9aeb8cca462bb41565d8f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//===-- RegisterContextMach_i386.h ------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef liblldb_RegisterContextMach_i386_h_
#define liblldb_RegisterContextMach_i386_h_

// C Includes
// C++ Includes
// Other libraries and framework includes
// Project includes
#include "RegisterContextDarwin_i386.h"

class RegisterContextMach_i386 : public RegisterContextDarwin_i386
{
public:
    
    RegisterContextMach_i386(lldb_private::Thread &thread, uint32_t concrete_frame_idx);
    
    virtual
    ~RegisterContextMach_i386();
    
protected:
    
    virtual int
    DoReadGPR (lldb::tid_t tid, int flavor, GPR &gpr);
    
    int
    DoReadFPU (lldb::tid_t tid, int flavor, FPU &fpu);
    
    int
    DoReadEXC (lldb::tid_t tid, int flavor, EXC &exc);
    
    int
    DoWriteGPR (lldb::tid_t tid, int flavor, const GPR &gpr);
    
    int
    DoWriteFPU (lldb::tid_t tid, int flavor, const FPU &fpu);
    
    int
    DoWriteEXC (lldb::tid_t tid, int flavor, const EXC &exc);
};

#endif  // liblldb_RegisterContextMach_i386_h_
OpenPOWER on IntegriCloud