This is the mail archive of the
mailing list for the GDB project.
Re: [patch] Add support for ARMv7M devices.
- From: Richard Earnshaw <Richard dot Earnshaw at buzzard dot freeserve dot co dot uk>
- To: Kazu Hirata <kazu at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org, dan at codesourcery dot com
- Date: Thu, 10 Jun 2010 00:04:43 +0100
- Subject: Re: [patch] Add support for ARMv7M devices.
- References: <20100609140312.291855664EF@henry1.codesourcery.com>
On 09/06/10 15:03, Kazu Hirata wrote:
Attached is a patch to add support for ARMv7M devices.
The patch is bigger than it really is due to the signature change to
Here are some highlights:
- arm_pc_is_thumb always returns 1 if the target is an ARMv7M device.
- arm_write_pc is adjusted so that it will set the Thumb bit in XPSR
for an ARMv7M device. Note that the position of Thumb bit in the
status register is different between ARMv7M devices and older
- arm_gdbarch_init looks for "org.gnu.gdb.arm.core-v7m".
It looks to me as though this code should also mostly apply to ARMv6M as
well (coretex-m0/1). However, the choice of name
'org.gnu.gdb.arm.core-v7m' seems to suggest otherwise. Is there really
a difference between the support needed for these cores? Or would a
more suitable name be appropriate?