Go to the documentation of this file.
12 #ifndef __ASM_GDB_STUB_H
13 #define __ASM_GDB_STUB_H
15 #undef GDBSTUB_DEBUG_IO
16 #undef GDBSTUB_DEBUG_PROTOCOL
18 #include <asm/ptrace.h>
51 #define GDB_REG_GR(N) (N)
52 #define GDB_REG_FR(N) (64+(N))
53 #define GDB_REG_PC 128
54 #define GDB_REG_PSR 129
55 #define GDB_REG_CCR 130
56 #define GDB_REG_CCCR 131
57 #define GDB_REG_TBR 135
58 #define GDB_REG_BRR 136
59 #define GDB_REG_DBAR(N) (137+(N))
60 #define GDB_REG_SCR(N) (141+(N))
61 #define GDB_REG_LR 145
62 #define GDB_REG_LCR 146
63 #define GDB_REG_FSR0 149
64 #define GDB_REG_ACC(N) (150+(N))
65 #define GDB_REG_ACCG(N) (158+(N)/4)
66 #define GDB_REG_MSR(N) (160+(N))
67 #define GDB_REG_GNER(N) (162+(N))
68 #define GDB_REG_FNER(N) (164+(N))
70 #define GDB_REG_SP GDB_REG_GR(1)
71 #define GDB_REG_FP GDB_REG_GR(2)
73 #ifndef _LANGUAGE_ASSEMBLY
112 #ifdef GDBSTUB_DEBUG_IO
113 #define gdbstub_io(FMT,...) gdbstub_printk(FMT, ##__VA_ARGS__)
115 #define gdbstub_io(FMT,...) ({ 0; })
118 #ifdef GDBSTUB_DEBUG_PROTOCOL
119 #define gdbstub_proto(FMT,...) gdbstub_printk(FMT,##__VA_ARGS__)
121 #define gdbstub_proto(FMT,...) ({ 0; })
129 register struct frv_frame0 *__debug_frame0
asm(
"gr31");
131 #define __debug_frame (&__debug_frame0->regs)
132 #define __debug_user_context (&__debug_frame0->uc)
133 #define __debug_regs (&__debug_frame0->debug)
134 #define __debug_reg(X) ((unsigned long *) ((unsigned long) &__debug_frame0 + (X)))