Go to the documentation of this file.
12 #ifndef _ASM_GDB_STUB_H
13 #define _ASM_GDB_STUB_H
15 #include <asm/exceptions.h>
21 #define GDB_REGID_PC 9
22 #define GDB_REGID_FP 7
23 #define GDB_REGID_SP 8
30 #define GDB_FR_D0 (0 * 4)
31 #define GDB_FR_D1 (1 * 4)
32 #define GDB_FR_D2 (2 * 4)
33 #define GDB_FR_D3 (3 * 4)
34 #define GDB_FR_A0 (4 * 4)
35 #define GDB_FR_A1 (5 * 4)
36 #define GDB_FR_A2 (6 * 4)
37 #define GDB_FR_A3 (7 * 4)
39 #define GDB_FR_SP (8 * 4)
40 #define GDB_FR_PC (9 * 4)
41 #define GDB_FR_MDR (10 * 4)
42 #define GDB_FR_EPSW (11 * 4)
43 #define GDB_FR_LIR (12 * 4)
44 #define GDB_FR_LAR (13 * 4)
45 #define GDB_FR_MDRQ (14 * 4)
47 #define GDB_FR_E0 (15 * 4)
48 #define GDB_FR_E1 (16 * 4)
49 #define GDB_FR_E2 (17 * 4)
50 #define GDB_FR_E3 (18 * 4)
51 #define GDB_FR_E4 (19 * 4)
52 #define GDB_FR_E5 (20 * 4)
53 #define GDB_FR_E6 (21 * 4)
54 #define GDB_FR_E7 (22 * 4)
56 #define GDB_FR_SSP (23 * 4)
57 #define GDB_FR_MSP (24 * 4)
58 #define GDB_FR_USP (25 * 4)
59 #define GDB_FR_MCRH (26 * 4)
60 #define GDB_FR_MCRL (27 * 4)
61 #define GDB_FR_MCVF (28 * 4)
63 #define GDB_FR_FPCR (29 * 4)
64 #define GDB_FR_DUMMY0 (30 * 4)
65 #define GDB_FR_DUMMY1 (31 * 4)
67 #define GDB_FR_FS0 (32 * 4)
69 #define GDB_FR_SIZE (NUMREGS * 4)
113 #ifdef CONFIG_MN10300_CACHE_ENABLED
116 #define gdbstub_purge_cache() do {} while (0)
147 #ifdef CONFIG_GDBSTUB_DEBUGGING
157 #ifdef CONFIG_GDBSTUB_DEBUG_ENTRY
158 #define gdbstub_entry(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__)
160 #define gdbstub_entry(FMT, ...) no_printk(FMT, ##__VA_ARGS__)
163 #ifdef CONFIG_GDBSTUB_DEBUG_PROTOCOL
164 #define gdbstub_proto(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__)
166 #define gdbstub_proto(FMT, ...) no_printk(FMT, ##__VA_ARGS__)
169 #ifdef CONFIG_GDBSTUB_DEBUG_IO
170 #define gdbstub_io(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__)
172 #define gdbstub_io(FMT, ...) no_printk(FMT, ##__VA_ARGS__)
175 #ifdef CONFIG_GDBSTUB_DEBUG_BREAKPOINT
176 #define gdbstub_bkpt(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__)
178 #define gdbstub_bkpt(FMT, ...) no_printk(FMT, ##__VA_ARGS__)