From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14125 invoked by alias); 23 Jan 2002 13:56:15 -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 13961 invoked from network); 23 Jan 2002 13:56:12 -0000 Received: from unknown (HELO wonka.esatclear.ie) (194.145.128.5) by sources.redhat.com with SMTP; 23 Jan 2002 13:56:12 -0000 Received: from esatclear.ie (IDENT:httpd@gratin.esatclear.ie [194.145.128.35]) by wonka.esatclear.ie (8.9.3/8.9.3) with SMTP id NAA23602; Wed, 23 Jan 2002 13:56:09 GMT From: "David Mc Kenna" Reply-to: mckennad@esatclear.ie To: Tim Combs , David Mc Kenna , gdb@sources.redhat.com Date: Wed, 23 Jan 2002 05:56:00 -0000 Subject: Re: Remote Serial Protocol X-Mailer: CWMail Web to Mail Gateway 2.6z, http://netwinsite.com/top_mail.htm Message-id: <3c4ebc81.47f2.0@esatclear.ie> X-User-Info: 137.71.23.54 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00263.txt.bz2 Thanks for the quick reply, Where are the macros for REGISTER_RAW_SIZE and REGISTER_NAME located ? Thanks, Dave McKenna >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 > > -- http://www.iol.ie