FreeBSD Bugzilla – Attachment 219527 Details for
Bug 251022
[patch] GDB stub in the kernel reports incorrect length of the ARM FPA registers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Hardcoded length of the FPA registers
gdb.diff (text/plain), 979 bytes, created by
Dmitry Salychev
on 2020-11-10 17:30:20 UTC
(
hide
)
Description:
Hardcoded length of the FPA registers
Filename:
MIME Type:
Creator:
Dmitry Salychev
Created:
2020-11-10 17:30:20 UTC
Size:
979 bytes
patch
obsolete
>Index: sys/arm/arm/gdb_machdep.c >=================================================================== >--- sys/arm/arm/gdb_machdep.c (revision 367528) >+++ sys/arm/arm/gdb_machdep.c (working copy) >@@ -89,6 +89,20 @@ > (kdb_thrctx->pcb_regs.sf_sp + 4 * 4); > return (&kdb_thrctx->pcb_regs.sf_pc); > } >+ case 16: >+ case 17: >+ case 18: >+ case 19: >+ case 20: >+ case 21: >+ case 22: >+ case 23: >+ /* >+ * GDB expects the FPA registers f0-f7 placed between >+ * the PC and the CPSR in the "g" packet each 96-bit long. >+ */ >+ *regsz = 12; >+ break; > } > > return (NULL); >Index: sys/arm/include/gdb_machdep.h >=================================================================== >--- sys/arm/include/gdb_machdep.h (revision 367528) >+++ sys/arm/include/gdb_machdep.h (working copy) >@@ -31,7 +31,7 @@ > #ifndef _MACHINE_GDB_MACHDEP_H_ > #define _MACHINE_GDB_MACHDEP_H_ > >-#define GDB_BUFSZ 400 >+#define GDB_BUFSZ 2048 > #define GDB_NREGS 26 > #define GDB_REG_PC 15 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 251022
:
219527
|
220011