From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15941 invoked by alias); 23 Dec 2003 15:00:55 -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 15933 invoked from network); 23 Dec 2003 15:00:54 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 23 Dec 2003 15:00:54 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1AYo1W-0005Wv-P4; Tue, 23 Dec 2003 10:00:38 -0500 Date: Tue, 23 Dec 2003 15:00:00 -0000 From: Daniel Jacobowitz To: "Manoj Verma, Noida" Cc: gdb@sources.redhat.com, "Amit S. Kale" Subject: Re: Access ARM BANKED registers Message-ID: <20031223150038.GA21228@nevyn.them.org> Mail-Followup-To: "Manoj Verma, Noida" , gdb@sources.redhat.com, "Amit S. Kale" References: <1B3885BC15C7024C845AAC78314766C501D72918@exch-01.noida.hcltech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1B3885BC15C7024C845AAC78314766C501D72918@exch-01.noida.hcltech.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-12/txt/msg00256.txt.bz2 On Tue, Dec 23, 2003 at 05:02:50PM +0530, Manoj Verma, Noida wrote: > Hi, > > I am doing remote debugging using GDB Server running on ARM based target. > My HOST is a i386 based Linux box. > > When I say: > (gdb) mt packet g > The reply is : > 01000000e4fdffbfecfdffbf43000000e4fdffbf040f02405c82000001000000a0830000ec77 > 1340607e1340c8fdffbfccfdffbfb4fdffbf50140440c0830000000000000000000000000000 > 0000000000000000000000000000000000000000000000000000000000000000000000000000 > 0000000000000000000000000000000000000000000000000000000000000000000000000000 > 00000000000000000000000010000060 > > which I think maps to: > > {"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", > "r11", "r12", "sp", "lr", "pc", "f0", "f1", "f2", "f3", "f4", "f5", > "f6", "f7", "fps", "cpsr" }; > > > My question is: > If I were to access the BANKED registers (like R8_fiq, R14_abt etc..) of > ARM, will the existing GDB Server architecture would suffice my need? Or in > other words, How can I achieve this? The current GDB protocol used for ARM doesn't support those registers. You'd probably want to add support for p/P packet register fetches and query them that way. Note that the current GDB _client_ doesn't support them either. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer