From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27906 invoked by alias); 9 Jun 2010 23:04:53 -0000 Received: (qmail 27891 invoked by uid 22791); 9 Jun 2010 23:04:51 -0000 X-SWARE-Spam-Status: No, hits=1.0 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,RCVD_IN_RP_RNBL,SARE_RECV_FREESERVE X-Spam-Check-By: sourceware.org Received: from smtp6.freeserve.com (HELO smtp6.freeserve.com) (193.252.22.191) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Jun 2010 23:04:47 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3617.me.freeserve.com (SMTP Server) with ESMTP id 9177E7000592; Thu, 10 Jun 2010 01:04:44 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3617.me.freeserve.com (SMTP Server) with ESMTP id 8527C70005AC; Thu, 10 Jun 2010 01:04:44 +0200 (CEST) Received: from barnowl.buzzard.freeserve.co.uk (unknown [95.148.210.117]) by mwinf3617.me.freeserve.com (SMTP Server) with ESMTP id 69C0E7000592; Thu, 10 Jun 2010 01:04:44 +0200 (CEST) Received: from [192.168.2.11] (unknown [192.168.2.11]) by barnowl.buzzard.freeserve.co.uk (Postfix) with ESMTP id A844E7F5EA; Thu, 10 Jun 2010 00:04:43 +0100 (BST) Message-ID: <4C101E0B.4040006@buzzard.freeserve.co.uk> Date: Wed, 09 Jun 2010 23:04:00 -0000 From: Richard Earnshaw User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: Kazu Hirata CC: gdb-patches@sourceware.org, dan@codesourcery.com Subject: Re: [patch] Add support for ARMv7M devices. References: <20100609140312.291855664EF@henry1.codesourcery.com> In-Reply-To: <20100609140312.291855664EF@henry1.codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-06/txt/msg00240.txt.bz2 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.