From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20520 invoked by alias); 10 Feb 2010 21:01:44 -0000 Received: (qmail 20254 invoked by uid 22791); 10 Feb 2010 21:01:43 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 10 Feb 2010 21:01:39 +0000 Received: (qmail 5988 invoked from network); 10 Feb 2010 21:01:38 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 10 Feb 2010 21:01:38 -0000 Date: Wed, 10 Feb 2010 21:01:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: hjl.tools@gmail.com, gdb-patches@sourceware.org Subject: Re: PATCH: Cache types from target description Message-ID: <20100210210135.GY9493@caradoc.them.org> References: <20100205011447.GA28263@lucon.org> <20100208185454.GA21449@lucon.org> <20100209154513.GA27404@lucon.org> <20100210183800.GA25489@caradoc.them.org> <201002102052.o1AKqvj4022421@glazunov.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201002102052.o1AKqvj4022421@glazunov.sibelius.xs4all.nl> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00277.txt.bz2 On Wed, Feb 10, 2010 at 09:52:57PM +0100, Mark Kettenis wrote: > > Date: Wed, 10 Feb 2010 13:38:03 -0500 > > From: Daniel Jacobowitz > > > > Really they should be described in the XML file! > > 'fraid I don't agree with you on that. When it comes to things like > multi-bit flags, you want a real programming language. How else would you do it? I don't want the answer to be "in C, in GDB"; we've got devices with dozens of complicated flag registers that are specific to that one device. I'm sure I could do it in Python, but it takes away the self-describing property. I'm not nuts enough to encapsulate the Python in XML and execute untrusted code. -- Daniel Jacobowitz CodeSourcery