From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14255 invoked by alias); 9 May 2008 23:41:12 -0000 Received: (qmail 14244 invoked by uid 22791); 9 May 2008 23:41:12 -0000 X-Spam-Check-By: sourceware.org Received: from de01egw01.freescale.net (HELO de01egw01.freescale.net) (192.88.165.102) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 May 2008 23:40:47 +0000 Received: from de01smr01.freescale.net (de01smr01.freescale.net [10.208.0.31]) by de01egw01.freescale.net (8.12.11/az33egw01) with ESMTP id m49NegTN026192 for ; Fri, 9 May 2008 16:40:43 -0700 (MST) Received: from ld0159-tx32 (ld0159-tx32.am.freescale.net [10.82.19.109]) by de01smr01.freescale.net (8.13.1/8.13.0) with ESMTP id m49NegMi013018 for ; Fri, 9 May 2008 18:40:42 -0500 (CDT) Date: Fri, 09 May 2008 23:41:00 -0000 From: "Anmol P. Paralkar" To: gdb@sourceware.org Subject: Question on power-core.xml, register: r1. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00086.txt.bz2 Hello, Per Appendix F, Sec. F.3 Predefined Target Types, of the GDB User Manual: code_ptr data_ptr Pointers to unspecified code and data. The program counter and any dedicated return address register may be marked as code pointers; printing a code pointer converts it into a symbolic address. The stack pointer and any dedicated address registers may be marked as data pointers. I note the use of the term: "may"; while power-core.xml marks 'pc' and 'lr' as type="code_ptr", it does not mark 'r1', the stack-pointer as type="data_ptr". Is there a specific reason why this is so? It's type="uint32"; marking 'pc' & 'lr' as type="code_ptr" has the advantage of converting their values into symbollic address, what would happen (and is not) were 'r1' to be marked type="data_ptr"? Thanks, Anmol.