From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11396 invoked by alias); 1 Nov 2002 14:18:35 -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 11283 invoked from network); 1 Nov 2002 14:18:33 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 1 Nov 2002 14:18:33 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id gA1DuOw00330 for ; Fri, 1 Nov 2002 08:56:24 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id gA1EIXf26210; Fri, 1 Nov 2002 09:18:33 -0500 Received: from localhost.redhat.com (IDENT://q3GG5x+FnBzE9yHf0+gxGQiNhR2yhB@tooth.toronto.redhat.com [172.16.14.29]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id gA1EIWr27947; Fri, 1 Nov 2002 09:18:32 -0500 Received: by localhost.redhat.com (Postfix, from userid 469) id CCC71FF79; Fri, 1 Nov 2002 09:14:25 -0500 (EST) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15810.35905.524789.755231@localhost.redhat.com> Date: Fri, 01 Nov 2002 06:18:00 -0000 To: Andrew Cagney Cc: Romain Berrendonner , gdb@sources.redhat.com Subject: Re: set processor command In-Reply-To: <3DBFE816.4050801@redhat.com> References: <20021029100028.GA1212@torino.act-europe.fr> <3DBFE816.4050801@redhat.com> X-SW-Source: 2002-11/txt/msg00001.txt.bz2 Andrew Cagney writes: > > Hi folks, > > > > I did a small comparison between gdb 5.0, 5.1 and gdb 5.2.1 (configured as > > --target=powerpc-unknown-elf, solaris hosted) regarding the 'set processor' > > command. The output is: > > > > gdb 5.0: > > -------- > > GDB knows about the following PowerPC and RS6000 variants: > > ppc-uisa PowerPC UISA - a PPC processor as viewed by user-level code > > rs6000 IBM RS6000 ("POWER") architecture, user-level view > > 403 IBM PowerPC 403 > > 403GC IBM PowerPC 403GC > > 505 Motorola PowerPC 505 > > 860 Motorola PowerPC 860 or 850 > > 601 Motorola PowerPC 601 > > 602 Motorola PowerPC 602 > > 603 Motorola/IBM PowerPC 603 or 603e > > 604 Motorola PowerPC 604 or 604e > > 750 Motorola/IBM PowerPC 750 or 740 > > > > gdb 5.1: > > -------- > > Requires an argument. Valid arguments are rs6000:6000, rs6000:rs1, rs6000:rsc, rs6000:rs2, powerpc:common, powerpc:603, powerpc:EC603e, powerpc:604, powerpc:403, powerpc:601, powerpc:620, powerpc:630, powerpc:a35, powerpc:rs64ii, powerpc:rs64iii, powerpc:7400, powerpc:MPC8XX, auto. > > > > gdb 5.2.1: > > ---------- > > Requires an argument. Valid arguments are rs6000:6000, rs6000:rs1, rs6000:rsc, rs6000:rs2, powerpc:common, auto. > > > > As you may see, the definition of the variants of powerpc vary considerably > > from one version to another, and I would like to know what will be the > > futur of this command: it looks like it is being deprecated, with less and > > less variants supported. Is that true ? Or is it only that the existing code > > is more generic ? > > The code was rationalied (across a number of architectures) and also > made very generic. GDB ``supports'' any architecture/machine that is both: > > - known by bfd > - known by gdb > > It's included in the list. The names are obtained via a query to BFD. > > A useful new feature (BFD and GDB) might be to also obtain a brief > description of the architecture/machine. Yes, but I think that the 5.2.1 version was only returning the rs6000 variants, which was a bug, and I think this was fixed when I did the e500 support. The CVS head version of gdb returns the following now, which is the correct set: (gdb) set processor Requires an argument. Valid arguments are rs6000:6000, rs6000:rs1, rs6000:rsc, rs6000:rs2, powerpc:common, powerpc:common64, powerpc:603, powerpc:EC603e, powerpc:604, powerpc:403, powerpc:601, powerpc:620, powerpc:630, powerpc:a35, powerpc:rs64ii, powerpc:rs64iii, powerpc:7400, powerpc:e500, powerpc:MPC8XX, auto. Elena > > Andrew >