From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76127 invoked by alias); 15 Dec 2015 15:35:40 -0000 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 Received: (qmail 76114 invoked by uid 89); 15 Dec 2015 15:35:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f182.google.com Received: from mail-ob0-f182.google.com (HELO mail-ob0-f182.google.com) (209.85.214.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 15 Dec 2015 15:35:38 +0000 Received: by mail-ob0-f182.google.com with SMTP id sd4so9410762obb.0 for ; Tue, 15 Dec 2015 07:35:38 -0800 (PST) X-Received: by 10.60.176.36 with SMTP id cf4mr30178864oec.20.1450193736475; Tue, 15 Dec 2015 07:35:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.69.69 with HTTP; Tue, 15 Dec 2015 07:35:17 -0800 (PST) In-Reply-To: <566F5B1A.8040703@redhat.com> References: <566F108D.1000401@redhat.com> <566F5B1A.8040703@redhat.com> From: Christopher Friedt Date: Tue, 15 Dec 2015 15:35:00 -0000 Message-ID: Subject: Re: cortex-m xml register descriptions for m-system To: Pedro Alves , Yao Qi , gdb-patches@sourceware.org, Tristan Gingold Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg00291.txt.bz2 Just so we can have consensus, please indicate what you think is the best solution - Pedro, Yao, & Tristan. Based on Tristan's feedback as well, it confirms that these registers are necessary for DWARF handling. On Mon, Dec 14, 2015 at 7:13 PM, Pedro Alves wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > I do like Pedro's suggestion. The above XML could be called arm-7m-profile.xml . Based on Yao's feedback and the ARMv6M A.R.M., I would also suggest something like the following for arm-6m-profile.xml. Please note, I suggest using adding regnum="25" for the xpsr in both cases. It borrows from arm-with-m-fpa-layout.xml in that it specifies some nameless registers (which I assume are ignored by gdb - Pedro, can you confirm?). The benefit is that the regnum fields of the 6m and 7m profiles would align easily, simplifying stub implementation. It's a bit messy though. Let's call the above 'option A'. Let's call the alternative below 'option B'. Common / base case for all ARM Cortex-M devices arm-m-profile.xml Additional registers for ARMv7M arm-7m-profile.xml If we can improve 'option B' via and reuse arm-m-profile.xml, please let me know. Thanks, C