Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb: debug_core,kdb: fix crash when arch does not have single step kgdb,x86: use macro HBP_NUM to replace magic number 4 kgdb,mips: remove unused kgdb_cpu_doing_single_step operations mm,kdb,kgdb: Add a debug reference for the kdb kmap usage KGDB: Remove set but unused newPC ftrace,kdb: Allow dumping a specific cpu's buffer with ftdump ftrace,kdb: Extend kdb to be able to dump the ftrace buffer kgdb,powerpc: Replace hardcoded offset by BREAK_INSTR_SIZE arm,kgdb: Add ability to trap into debugger on notify_die gdbstub: do not directly use dbg_reg_def[] in gdb_cmd_reg_set() gdbstub: Implement gdbserial 'p' and 'P' packets kgdb,arm: Individual register get/set for arm kgdb,mips: Individual register get/set for mips kgdb,x86: Individual register get/set for x86 kgdb,kdb: individual register set and and get API gdbstub: Optimize kgdb's "thread:" response for the gdb serial protocol kgdb: remove custom hex_to_bin()implementation
This commit is contained in:
@@ -8,28 +8,27 @@
|
||||
#if (_MIPS_ISA == _MIPS_ISA_MIPS1) || (_MIPS_ISA == _MIPS_ISA_MIPS2) || \
|
||||
(_MIPS_ISA == _MIPS_ISA_MIPS32)
|
||||
|
||||
#define KGDB_GDB_REG_SIZE 32
|
||||
#define KGDB_GDB_REG_SIZE 32
|
||||
#define GDB_SIZEOF_REG sizeof(u32)
|
||||
|
||||
#elif (_MIPS_ISA == _MIPS_ISA_MIPS3) || (_MIPS_ISA == _MIPS_ISA_MIPS4) || \
|
||||
(_MIPS_ISA == _MIPS_ISA_MIPS64)
|
||||
|
||||
#ifdef CONFIG_32BIT
|
||||
#define KGDB_GDB_REG_SIZE 32
|
||||
#define KGDB_GDB_REG_SIZE 32
|
||||
#define GDB_SIZEOF_REG sizeof(u32)
|
||||
#else /* CONFIG_CPU_32BIT */
|
||||
#define KGDB_GDB_REG_SIZE 64
|
||||
#define KGDB_GDB_REG_SIZE 64
|
||||
#define GDB_SIZEOF_REG sizeof(u64)
|
||||
#endif
|
||||
#else
|
||||
#error "Need to set KGDB_GDB_REG_SIZE for MIPS ISA"
|
||||
#endif /* _MIPS_ISA */
|
||||
|
||||
#define BUFMAX 2048
|
||||
#if (KGDB_GDB_REG_SIZE == 32)
|
||||
#define NUMREGBYTES (90*sizeof(u32))
|
||||
#define NUMCRITREGBYTES (12*sizeof(u32))
|
||||
#else
|
||||
#define NUMREGBYTES (90*sizeof(u64))
|
||||
#define NUMCRITREGBYTES (12*sizeof(u64))
|
||||
#endif
|
||||
#define DBG_MAX_REG_NUM 72
|
||||
#define NUMREGBYTES (DBG_MAX_REG_NUM * sizeof(GDB_SIZEOF_REG))
|
||||
#define NUMCRITREGBYTES (12 * sizeof(GDB_SIZEOF_REG))
|
||||
#define BREAK_INSTR_SIZE 4
|
||||
#define CACHE_FLUSH_IS_SAFE 0
|
||||
|
||||
|
Reference in New Issue
Block a user