4 * Copyright 1995 Alexandre Julliard
11 #include "registers.h"
17 REG_EAX
, REG_EBX
, REG_ECX
, REG_EDX
, REG_ESI
,
18 REG_EDI
, REG_EBP
, REG_EFL
, REG_EIP
, REG_ESP
,
19 REG_AX
, REG_BX
, REG_CX
, REG_DX
, REG_SI
,
20 REG_DI
, REG_BP
, REG_FL
, REG_IP
, REG_SP
,
21 REG_CS
, REG_DS
, REG_ES
, REG_SS
27 EXEC_CONT
, /* Continuous execution */
28 EXEC_STEP_OVER
, /* Stepping over a call */
29 EXEC_STEP_INSTR
/* Single-stepping an instruction */
32 extern struct sigcontext_struct
*context
; /* debugger/registers.c */
33 extern unsigned int dbg_mode
;
35 /* debugger/break.c */
36 extern void DEBUG_SetBreakpoints( BOOL set
);
37 extern int DEBUG_FindBreakpoint( unsigned int segment
, unsigned int addr
);
38 extern void DEBUG_AddBreakpoint( unsigned int segment
, unsigned int addr
);
39 extern void DEBUG_DelBreakpoint( int num
);
40 extern void DEBUG_EnableBreakpoint( int num
, BOOL enable
);
41 extern void DEBUG_InfoBreakpoints(void);
42 extern BOOL
DEBUG_HandleTrap( struct sigcontext_struct
*context
);
43 extern BOOL
DEBUG_ShouldContinue( struct sigcontext_struct
*context
,
44 enum exec_mode mode
);
45 extern void DEBUG_RestartExecution( struct sigcontext_struct
*context
,
46 enum exec_mode mode
, int instr_len
);
48 /* debugger/registers.c */
49 extern void DEBUG_SetRegister( enum debug_regs reg
, int val
);
50 extern int DEBUG_GetRegister( enum debug_regs reg
);
51 extern void DEBUG_InfoRegisters(void);
53 /* debugger/stack.c */
54 extern void DEBUG_InfoStack(void);
55 extern void DEBUG_BackTrace(void);
58 extern void wine_debug( int signal
, struct sigcontext_struct
* regs
);
60 extern void print_address( unsigned int seg
, unsigned int addr
, int addrlen
);
61 extern unsigned int db_disasm( unsigned int segment
, unsigned int loc
);
63 #endif /* DEBUGGER_H */