1 | /* |
---|
2 | ************************************************************************** |
---|
3 | * |
---|
4 | * Component = RDBG |
---|
5 | * Module = rdbg_f.h |
---|
6 | * |
---|
7 | * Synopsis = Machine-dependent header file |
---|
8 | * |
---|
9 | ************************************************************************** |
---|
10 | */ |
---|
11 | |
---|
12 | #ifndef RDBG_F_H |
---|
13 | #define RDBG_F_H |
---|
14 | |
---|
15 | #include <rtems.h> |
---|
16 | #include <rdbg/remdeb.h> |
---|
17 | |
---|
18 | #define EFLAGS_TF 0x00100 |
---|
19 | |
---|
20 | typedef struct Exception_context_struct { |
---|
21 | struct Exception_context_struct *next; |
---|
22 | struct Exception_context_struct *previous; |
---|
23 | Objects_Id id; |
---|
24 | Objects_Id semaphoreId; |
---|
25 | CPU_Exception_frame *ctx; |
---|
26 | } Exception_context; |
---|
27 | |
---|
28 | extern int PushExceptCtx (Objects_Id Id, |
---|
29 | Objects_Id semId, |
---|
30 | CPU_Exception_frame *ctx); |
---|
31 | extern int PopExceptCtx (Objects_Id Id); |
---|
32 | extern Exception_context *GetExceptCtx (Objects_Id Id); |
---|
33 | extern int Single_Step (CPU_Exception_frame* ctx); |
---|
34 | extern int CheckForSingleStep (CPU_Exception_frame* ctx); |
---|
35 | extern void BreakPointExcHdl (CPU_Exception_frame *ctx); |
---|
36 | extern void CtxToRegs (const CPU_Exception_frame*,xdr_regs*); |
---|
37 | extern void RegsToCtx (const xdr_regs*,CPU_Exception_frame*); |
---|
38 | |
---|
39 | extern void enterRdbg (); |
---|
40 | extern void get_ctx_thread (Thread_Control *thread, |
---|
41 | CPU_Exception_frame* ctx); |
---|
42 | extern void set_ctx_thread (Thread_Control *thread, |
---|
43 | CPU_Exception_frame* ctx); |
---|
44 | |
---|
45 | void copyback_data_cache_and_invalidate_instr_cache(); |
---|
46 | |
---|
47 | extern int ExitForSingleStep; |
---|
48 | |
---|
49 | |
---|
50 | #endif |
---|
51 | |
---|
52 | |
---|
53 | |
---|