From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31999 invoked by alias); 11 Aug 2004 15:04:00 -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 31992 invoked from network); 11 Aug 2004 15:04:00 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 11 Aug 2004 15:04:00 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i7BF40e1029107 for ; Wed, 11 Aug 2004 11:04:00 -0400 Received: from zenia.home.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i7BF3wa27236; Wed, 11 Aug 2004 11:03:58 -0400 To: Fabian Cenedese Cc: gdb@sources.redhat.com Subject: Re: How to get PPC registers References: <5.2.0.9.1.20040811093751.01d14b58@NT_SERVER> From: Jim Blandy Date: Wed, 11 Aug 2004 15:04:00 -0000 In-Reply-To: <5.2.0.9.1.20040811093751.01d14b58@NT_SERVER> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-08/txt/msg00172.txt.bz2 Fabian Cenedese writes: > The values I return for the registers are just made up to test the > communication. But they are only filled into the general (and FP) > registers. What command do I have to use to get the special > registers like pc, lr etc? You should try saying 'info all-registers', which will also show you the floating-point registers. The FP registers follow the general-purpose registers in the 'g' packet; since there are 32 of them, and each is eight bytes long, they consume bytes 128 -- 384 of the 'g' packet. Your sample packet data isn't long enough to reach the miscellaneous registers.