This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Add support for ARMv7M devices.


On 09/06/10 15:03, Kazu Hirata wrote:
Hi,

Attached is a patch to add support for ARMv7M devices.

The patch is bigger than it really is due to the signature change to
arm_pc_is_thumb.

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
   devices.

- 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?


R.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]