5 * Copyright (C) 2001-2004 Amit S. Kale
6 * Copyright (C) 2008 Wind River Systems, Inc.
10 * BUFMAX defines the maximum number of characters in inbound/outbound
11 * buffers at least NUMREGBYTES*2 are needed for register packets
12 * Longer buffer is needed to list all threads
17 * Note that this register image is in a different order than
18 * the register image that Linux produces at interrupt time.
20 * Linux's register image is defined by struct pt_regs in ptrace.h.
21 * Just why GDB uses a different order is a historical mystery.
33 GDB_PC
, /* 8 also known as eip */
34 GDB_PS
, /* 9 also known as eflags */
42 #else /* ! CONFIG_X86_32 */
63 #endif /* CONFIG_X86_32 */
66 * Number of bytes of registers:
69 # define NUMREGBYTES 64
71 # define NUMREGBYTES ((GDB_PS+1)*8)
74 static inline void arch_kgdb_breakpoint(void)
78 #define BREAK_INSTR_SIZE 1
79 #define CACHE_FLUSH_IS_SAFE 1
81 #endif /* _ASM_KGDB_H_ */