From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11675 invoked by alias); 27 Oct 2005 12:48:41 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 11651 invoked by uid 22791); 27 Oct 2005 12:48:33 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 27 Oct 2005 12:48:33 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EV7BH-0005ei-7a; Thu, 27 Oct 2005 08:48:31 -0400 Date: Thu, 27 Oct 2005 12:48:00 -0000 From: Daniel Jacobowitz To: Efim Monjak Cc: gdb@sources.redhat.com Subject: Re: arm-elf remote target and cpsr Message-ID: <20051027124831.GC21596@nevyn.them.org> Mail-Followup-To: Efim Monjak , gdb@sources.redhat.com References: <4360C10E.70301@lipowsky.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4360C10E.70301@lipowsky.de> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-10/txt/msg00158.txt.bz2 On Thu, Oct 27, 2005 at 01:59:10PM +0200, Efim Monjak wrote: > Hi all > > by the communikation with a arm-elf target with remote protokoll I see > difference to ARM simulator: > 1. the cpsr register value can be wieved in Insight if the target is > simulator > but it is always zero (by using only GDB also) if remote protokoll is used. > I use our stub, possibly the value for cpsr register is on the wrong place. > The responce to the command "g" has follow format: > 26 times 32-bit values with all registers data. The R0 is the first and > the cpsr is the last value. The values R0 to PC are displayed by GDB > correct. > Is the responce from stub wrong? Yes. Look at gdb/regformats/reg-arm.dat for more about the ARM g packet; the old floating point (FPA) registers are included, and they are not 32 bits. -- Daniel Jacobowitz CodeSourcery, LLC