Subversion Repositories HelenOS

Rev

Rev 2940 | Rev 2942 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2940 Rev 2941
Line 37... Line 37...
37
 
37
 
38
typedef struct {
38
typedef struct {
39
    unsigned char back;
39
    unsigned char back;
40
} breakpoint_arch_t;
40
} breakpoint_arch_t;
41
 
41
 
-
 
42
typedef struct {
-
 
43
    uint32_t eax;
-
 
44
    uint32_t ecx;
-
 
45
    uint32_t edx;
-
 
46
    uint32_t esi;
-
 
47
    uint32_t edi;
-
 
48
    uint32_t ebp;
-
 
49
    uint32_t ebx;
-
 
50
 
-
 
51
    uint32_t gs;
-
 
52
    uint32_t fs;
-
 
53
    uint32_t es;
-
 
54
    uint32_t ds;
-
 
55
 
-
 
56
    uint32_t error_word;
-
 
57
    uint32_t eip;
-
 
58
    uint32_t cs;
-
 
59
    uint32_t eflags;
-
 
60
    uint32_t stack[];
-
 
61
} istate_t;
-
 
62
 
-
 
63
static inline uint32_t istate_get_pc(istate_t *istate)
-
 
64
{
42
#define OFFSET_PC 12
65
    return istate->eip;
-
 
66
}
43
 
67
 
44
#endif
68
#endif
45
 
69
 
46
/** @}
70
/** @}
47
 */
71
 */