FreeBSD Bugzilla – Attachment 220011 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
fpa_registers_length.diff (text/plain), 613 bytes, created by
Dmitry Salychev
on 2020-11-26 21:00:48 UTC
(
hide
)
Description:
Hardcoded length of the FPA registers
Filename:
MIME Type:
Creator:
Dmitry Salychev
Created:
2020-11-26 21:00:48 UTC
Size:
613 bytes
patch
obsolete
>Index: sys/arm/include/gdb_machdep.h >=================================================================== >--- 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
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