From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7953 invoked by alias); 23 Jan 2002 13:48:32 -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 7820 invoked from network); 23 Jan 2002 13:48:28 -0000 Received: from unknown (HELO motgate3.mot.com) (144.189.100.103) by sources.redhat.com with SMTP; 23 Jan 2002 13:48:28 -0000 Received: [from pobox.mot.com (pobox.mot.com [129.188.137.100]) by motgate3.mot.com (motgate3 2.1) with ESMTP id GAA05913; Wed, 23 Jan 2002 06:38:10 -0700 (MST)] Received: [from udc.urbana.css.mot.com (udc.urbana.css.mot.com [192.88.153.1]) by pobox.mot.com (MOT-pobox 2.0) with ESMTP id GAA01034; Wed, 23 Jan 2002 06:48:26 -0700 (MST)] Received: from tmnt.urbana.css.mot.com (tmnt.urbana.css.mot.com [199.1.89.14]) by udc.urbana.css.mot.com (8.10.2+Sun/8.10.2) with ESMTP id g0NDmQg17454; Wed, 23 Jan 2002 07:48:26 -0600 (CST) Received: (from tcombs@localhost) by tmnt.urbana.css.mot.com (8.11.6/8.11.6) id g0NDmQu18750; Wed, 23 Jan 2002 07:48:26 -0600 Date: Wed, 23 Jan 2002 05:48:00 -0000 From: Tim Combs To: David Mc Kenna Cc: gdb@sources.redhat.com Subject: Re: Remote Serial Protocol Message-ID: <20020123074825.C18683@urbana.css.mot.com> References: <3c4eb839.466d.0@esatclear.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3c4eb839.466d.0@esatclear.ie>; from mckennad@esatclear.ie on Wed, Jan 23, 2002 at 01:18:49PM +0000 X-SW-Source: 2002-01/txt/msg00262.txt.bz2 The answer used to be in remote.c but now its at the end of the documentation: read registers g Read general registers. reply XX... Each byte of register data is described by two hex digits. The bytes with the register are transmitted in target byte order. The size of each register and their position within the `g' packet are determined by the GDB internal macros REGISTER_RAW_SIZE and REGISTER_NAME macros. For instance, if your target had 4 32bit registers (for simplicity) and all the values were 0xdeadbeef, then the string your target would send back would look like: deadbeefdeadbeefdeadbeefdeadbeef (With all the packet info stripped off.) Tim.Combs@motorola.com On Wed, Jan 23, 2002 at 01:18:49PM +0000, David Mc Kenna wrote: > A question about the Remote Serial Protocol > > When gdb issues the command : "+$g#67" , which reads the general registers, > what is the format of the expected return. > > > Debugging with gdb gives a vague reference but no solid info. > > Thanks, > Dave Mc Kenna > > > > > -- > http://www.iol.ie