diff options
author | Jonathan Larmour <jifl@eCosCentric.com> | 2012-04-26 15:20:12 +0000 |
---|---|---|
committer | Jonathan Larmour <jifl@eCosCentric.com> | 2012-04-26 15:20:12 +0000 |
commit | 706fae9f11d7db72d99f3f1bad4e3181a086db52 (patch) | |
tree | 5bb05571a801e7c0578b46d4c44e205261f7ef07 /gdb/arm-tdep.c | |
parent | cc36e7cb6e70b73876c2bd6b6925c0a51231f003 (diff) | |
download | gdb-706fae9f11d7db72d99f3f1bad4e3181a086db52.tar.gz |
* arm-tdep.h (VFP_REGISTER_SIZE): Define.
* features/arm-with-m-vfp-d16.xml: New file. Describes
Cortex-M with VFPv4-sp-d16 FPU register layout.
* features/Makefile (WHICH): Add arm-with-m-vfp-d16.
* features/arm-with-m-vfp-d16.c: New. Generated from above.
* arm-tdep.c: Include arm-with-m-vfp-d16.c.
(arm-register_g_packet_guesses): Add vfp-d16 guess.
(_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index b14b944122d..f83dc0e6c48 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -59,6 +59,7 @@ #include "features/arm-with-m.c" #include "features/arm-with-m-fpa-layout.c" +#include "features/arm-with-m-vfp-d16.c" #include "features/arm-with-iwmmxt.c" #include "features/arm-with-vfpv2.c" #include "features/arm-with-vfpv3.c" @@ -9698,6 +9699,14 @@ arm_register_g_packet_guesses (struct gdbarch *gdbarch) (16 * INT_REGISTER_SIZE) + INT_REGISTER_SIZE, tdesc_arm_with_m); + + /* M-profile plus M4F VFP. */ + register_remote_g_packet_guess (gdbarch, + /* r0-r12,sp,lr,pc; d0-d15; fpscr,xpsr */ + (16 * INT_REGISTER_SIZE) + + (16 * VFP_REGISTER_SIZE) + + (2 * INT_REGISTER_SIZE), + tdesc_arm_with_m_vfp_d16); } /* Otherwise we don't have a useful guess. */ @@ -10333,6 +10342,7 @@ _initialize_arm_tdep (void) /* Initialize the standard target descriptions. */ initialize_tdesc_arm_with_m (); initialize_tdesc_arm_with_m_fpa_layout (); + initialize_tdesc_arm_with_m_vfp_d16 (); initialize_tdesc_arm_with_iwmmxt (); initialize_tdesc_arm_with_vfpv2 (); initialize_tdesc_arm_with_vfpv3 (); |