From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10154 invoked by alias); 9 May 2008 17:18:45 -0000 Received: (qmail 10145 invoked by uid 22791); 9 May 2008 17:18:45 -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 17:18:27 +0000 Received: from de01smr01.freescale.net (de01smr01.freescale.net [10.208.0.31]) by de01egw02.freescale.net (8.12.11/de01egw02) with ESMTP id m49HIMeX013384; Fri, 9 May 2008 10:18:22 -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 m49HIL24006431; Fri, 9 May 2008 12:18:21 -0500 (CDT) Date: Fri, 09 May 2008 17:18:00 -0000 From: "Anmol P. Paralkar" To: Daniel Jacobowitz cc: gdb@sourceware.org Subject: Re: Question on 'set tdesc filename '. In-Reply-To: <20080509165845.GA8827@caradoc.them.org> Message-ID: References: <20080509165845.GA8827@caradoc.them.org> 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/msg00079.txt.bz2 On Fri, 9 May 2008, Daniel Jacobowitz wrote: > On Fri, May 09, 2008 at 11:50:27AM -0500, Anmol P. Paralkar wrote: >> Hello, >> >> Is there actually a scenario when the user would ask that the target description be >> read from / (locally, host-side) rather then relying on the default behaviour >> to have GDB read the description from the target? > > Yes: if a deployed target does not support supplying the description > automatically. One possible reason might be space constraints on the > target system. Another might be that the target stub is simply old. > > It's also useful for testing. Oh, OK. So in these cases, the register ordering in the description had better match-up what the remote-stub (implements and) sends - I mean, since in the case where the remote side sends the description, this is automatically ensured as GDB parses in the XML. I follow why the command is needed, thanks. > >> the default behaviour. (So my understanding is that the XML descriptions provided >> in the GDB sources are purely as reference for bare-metal application writers to use >> in their remote-stub implementations). > > They are provided as reference, but also built-in to both GDB and > gdbserver for internal use. So, in the case of PowerPC, the [pu]trace interface would only provide the standard 71 registers; what if we want to contribute back a description that defines more than those? Is it OK for a description to have more than what the [pu]trace interface provides, since you say that this gets built-in to GDB & gdbserver? Thanks, Anmol. > > -- > Daniel Jacobowitz > CodeSourcery >