--- sys/arm/include/gdb_machdep.h (revision 367806) +++ sys/arm/include/gdb_machdep.h (working copy) @@ -36,9 +36,14 @@ #define GDB_REG_PC 15 static __inline size_t -gdb_cpu_regsz(int regnum __unused) +gdb_cpu_regsz(int regnum) { - return (sizeof(int)); + /* + * GDB expects the FPA registers f0-f7 each 96-bit long placed between + * the PC and the CPSR in a response to the "g" packet. + */ + return ((regnum > 15) && (regnum < 24)) + ? ((size_t) 12) : (sizeof(int)); } static __inline int