---

**[tickets:#468] ARM: VFP register offset shift and GDB crash on cores without 
MON/HYP extensions**

**Status:** new
**Milestone:** 1.0.0
**Created:** Thu Mar 12, 2026 01:22 PM UTC by Eriks Ezerins
**Last Updated:** Thu Mar 12, 2026 01:22 PM UTC
**Owner:** OpenOCD-Gerrit
**Attachments:**

- 
[am335_ft232h.cfg](https://sourceforge.net/p/openocd/tickets/468/attachment/am335_ft232h.cfg)
 (1.5 kB; application/octet-stream)
- 
[fix_for_trunk.patch](https://sourceforge.net/p/openocd/tickets/468/attachment/fix_for_trunk.patch)
 (5.2 kB; text/x-patch)
- 
[openocd_012.log](https://sourceforge.net/p/openocd/tickets/468/attachment/openocd_012.log)
 (1.7 kB; text/x-log)
- 
[openocd_012_gdb.log](https://sourceforge.net/p/openocd/tickets/468/attachment/openocd_012_gdb.log)
 (19.1 kB; text/x-log)
- 
[openocd_trunk.log](https://sourceforge.net/p/openocd/tickets/468/attachment/openocd_trunk.log)
 (1.9 kB; text/x-log)
- 
[openocd_trunk_fixed.log](https://sourceforge.net/p/openocd/tickets/468/attachment/openocd_trunk_fixed.log)
 (1.8 kB; text/x-log)
- 
[openocd_trunk_fixed_gdb.log](https://sourceforge.net/p/openocd/tickets/468/attachment/openocd_trunk_fixed_gdb.log)
 (19.2 kB; text/x-log)
- 
[openocd_trunk_gdb.log](https://sourceforge.net/p/openocd/tickets/468/attachment/openocd_trunk_gdb.log)
 (12.5 kB; text/x-log)


In src/target/armv4_5.c, function arm_build_reg_cache() uses "continue" 
statements producing a mismatch in register numbering. The vulnerability exists 
for any core where the arm_core_type is not ARM_CORE_TYPE_SEC_EXT or 
ARM_CORE_TYPE_VIRT_EXT, including i.MX6 and AM335x on BBB (BeagleBone Black).

As a result, on OpenOCD v0.12.0 the opuput of "reg" command is inconsistent 
(d31 and fpscr are missing, see openocd_012_gdb.log attached).
Trunk openocd build also has this issue. But besides of that, the "i r" command 
produces an error forcing gdb to disconnect from the target.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.


Reply via email to