Change GDB_BUFSZ to be large enough to hold a register dump where each
register takes 16 characters (64-bit register in hex). In practice this is a slight bit of overkill as 7 of the 56 registers are only 32-bit, but having the buffer too small results in remote kgdb trashing kernel memory when it connects. PR: amd64/108673 Submitted by: Ravi Murty, Nikhil Rao @ Intel MFC after: 3 days
This commit is contained in:
parent
abb828c3b9
commit
adbe57597a
@ -29,7 +29,7 @@
|
||||
#ifndef _MACHINE_GDB_MACHDEP_H_
|
||||
#define _MACHINE_GDB_MACHDEP_H_
|
||||
|
||||
#define GDB_BUFSZ 500
|
||||
#define GDB_BUFSZ (GDB_NREGS * 16)
|
||||
#define GDB_NREGS 56
|
||||
#define GDB_REG_PC 16
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user