From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 940 invoked by alias); 10 Apr 2006 12:43:35 -0000 Received: (qmail 926 invoked by uid 22791); 10 Apr 2006 12:43:34 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 10 Apr 2006 12:43:31 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FSvjq-0005IX-W0; Mon, 10 Apr 2006 08:43:27 -0400 Date: Mon, 10 Apr 2006 12:43:00 -0000 From: Daniel Jacobowitz To: "David S. Miller" Cc: nickrob@snap.net.nz, gdb-patches@sources.redhat.com Subject: Re: [PATCH]: Fix gdb.mi/mi-regs.exp Message-ID: <20060410124326.GA20298@nevyn.them.org> Mail-Followup-To: "David S. Miller" , nickrob@snap.net.nz, gdb-patches@sources.redhat.com References: <17465.33321.414493.769813@farnswood.snap.net.nz> <20060409.203142.76326217.davem@davemloft.net> <17466.931.119823.103959@farnswood.snap.net.nz> <20060410.002041.124255612.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060410.002041.124255612.davem@davemloft.net> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00117.txt.bz2 On Mon, Apr 10, 2006 at 12:20:41AM -0700, David S. Miller wrote: > From: Nick Roberts > Date: Mon, 10 Apr 2006 19:05:07 +1200 > > > But these tests are for the MI interface. Register tests for specific > > architectures could presumably go in gdb.base/regs.exp and tests in mi-regs.exp > > could be more general e.g just check -data-list-register-names returns a list > > of values, count them and use this information for tests on > > -data-list-register-values. > > In the long term that's probably a good idea. mi-regs.exp should check "the registers are internally consistent and sane". It could encode knowledge of which registers must be present, or not; it works either way... This will definitely need a refresh if my XML-based description work is merged to trunk, since the register ordering may then be up to the target. -- Daniel Jacobowitz CodeSourcery