From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15154 invoked by alias); 6 May 2005 22:46:51 -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 15080 invoked from network); 6 May 2005 22:46:42 -0000 Received: from unknown (HELO sccrmhc12.comcast.net) (204.127.202.56) by sourceware.org with SMTP; 6 May 2005 22:46:42 -0000 Received: from [10.0.1.2] (c-24-61-199-96.hsd1.nh.comcast.net[24.61.199.96]) by comcast.net (sccrmhc12) with SMTP id <20050506224641012000o3pee>; Fri, 6 May 2005 22:46:42 +0000 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Fri, 06 May 2005 22:46:00 -0000 Subject: RE: Available registers as a target property From: Paul Schlie To: Daniel Jacobowitz , Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-SW-Source: 2005-05/txt/msg00080.txt.bz2 > Daniel Jacobowitz wrote: > ... > Today, the contents of the register cache and the layout of GDB's regnum > space are determined by the gdbarch. There are several hooks for this, > primarily these three: > > num_regs > register_name > register_type > > The gdbarch determines what raw registers are available. But this isn't a > perfect match with what raw registers are _really_ available, because the > gdbarch only has the clues we use to select a gdbarch available: things like > byte order and BFD machine number. At best, those tell us what registers > the binary we're debugging requires. The runtime set of registers we can > see are a property of the target, not of the gdbarch. > ... Might it be more appropriate to enable gdbarch to be extended to enable the more specific description of a particular target component and mode; as opposed to pushing the requirement of a target to provide detailed register etc. information about itself when all that should be necessary should be for it to more specifically identify itself and present mode if any, thereby enabling a correspondingly more precise gdbarch description to be selected as the basis of it's logically visible model?