From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2866 invoked by alias); 9 May 2008 21:42:22 -0000 Received: (qmail 2858 invoked by uid 22791); 9 May 2008 21:42:21 -0000 X-Spam-Check-By: sourceware.org Received: from de01egw02.freescale.net (HELO de01egw02.freescale.net) (192.88.165.103) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 May 2008 21:42:03 +0000 Received: from de01smr01.freescale.net (de01smr01.freescale.net [10.208.0.31]) by de01egw02.freescale.net (8.12.11/de01egw02) with ESMTP id m49Lfxld012737 for ; Fri, 9 May 2008 14:41:59 -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 m49LfwNu013963 for ; Fri, 9 May 2008 16:41:58 -0500 (CDT) Date: Fri, 09 May 2008 21:42:00 -0000 From: "Anmol P. Paralkar" To: gdb@sourceware.org Subject: Question on attribute save-restore in reg elements (target descriptions). 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/msg00085.txt.bz2 Hello, Per Appendix F, Sec. F.2.5 Registers, of the GDB User Manual: save-restore Whether the register should be preserved across inferior function calls; this must be either yes or no. The default is yes, which is appropriate for most registers except for some system control registers; this is not related to the target's ABI. In our target description file, we have a lot of special purpose registers about which nothing might be assumed either way, so in addition to 'yes' and 'no', can we have an "unspecified" value to this attribute, (say, denoted by '?')? In what way does GDB use this information? PS: Please could you also clarify the term 'inferior function'? Thank you, Anmol.