linux/kernel/debug
Jason Wessel 6d855b1d83 gdbstub: do not directly use dbg_reg_def[] in gdb_cmd_reg_set()
Presently the usable registers definitions on x86 are not contiguous
for kgdb.  The x86 kgdb uses a case statement for the sparse register
accesses.  The array which defines the registers (dbg_reg_def) should
not be used directly in order to safely work with sparse register
definitions.

Specifically there was a problem when gdb accesses ORIG_AX, which is
accessed only through the case statement.

This patch encodes register memory using the size information provided
from the debugger which avoids the need to look up the size of the
register.  The dbg_set_reg() function always further validates the
inputs from the debugger.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Dongdong Deng <dongdong.deng@windriver.com>
2010-08-05 09:22:22 -05:00
..
kdb kgdb,kdb: individual register set and and get API 2010-08-05 09:22:20 -05:00
debug_core.c debug_core,kdb: fix kgdb_connected bit set in the wrong place 2010-07-21 19:27:07 -05:00
debug_core.h kgdb: gdb "monitor" -> kdb passthrough 2010-05-20 21:04:24 -05:00
gdbstub.c gdbstub: do not directly use dbg_reg_def[] in gdb_cmd_reg_set() 2010-08-05 09:22:22 -05:00
Makefile kdb: core for kgdb back end (1 of 2) 2010-05-20 21:04:20 -05:00