| * Copyright (C) 2001-2004 Amit S. Kale |
| * Copyright (C) 2008 Wind River Systems, Inc. |
| * BUFMAX defines the maximum number of characters in inbound/outbound |
| * buffers at least NUMREGBYTES*2 are needed for register packets |
| * Longer buffer is needed to list all threads |
| * Note that this register image is in a different order than |
| * the register image that Linux produces at interrupt time. |
| * Linux's register image is defined by struct pt_regs in ptrace.h. |
| * Just why GDB uses a different order is a historical mystery. |
| GDB_PC, /* 8 also known as eip */ |
| GDB_PS, /* 9 also known as eflags */ |
| #define NUMREGBYTES ((GDB_GS+1)*4) |
| #else /* ! CONFIG_X86_32 */ |
| #define NUMREGBYTES ((GDB_SS+1)*4) |
| #endif /* CONFIG_X86_32 */ |
| static inline void arch_kgdb_breakpoint(void) |
| #define BREAK_INSTR_SIZE 1 |
| #define CACHE_FLUSH_IS_SAFE 1 |
| #endif /* _ASM_KGDB_H_ */ |