From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9499 invoked by alias); 22 Aug 2003 17:23:42 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 9440 invoked from network); 22 Aug 2003 17:23:30 -0000 Received: from unknown (HELO mms2.broadcom.com) (63.70.210.59) by sources.redhat.com with SMTP; 22 Aug 2003 17:23:30 -0000 Received: from 63.70.210.1 by mms2.broadcom.com with ESMTP (Broadcom SMTP Relay (MMS v5.5.3)); Fri, 22 Aug 2003 10:19:41 -0700 Received: from mail-sj1-5.sj.broadcom.com (mail-sj1-5.sj.broadcom.com [10.16.128.236]) by mon-irva-11.broadcom.com (8.9.1/8.9.1) with ESMTP id KAA19106 for ; Fri, 22 Aug 2003 10: 22:47 -0700 (PDT) Received: from ldt-sj3-010.sj.broadcom.com (ldt-sj3-010 [10.21.64.10]) by mail-sj1-5.sj.broadcom.com (8.12.9/8.12.9/SSF) with ESMTP id h7MHNDov003301 for ; Fri, 22 Aug 2003 10:23:13 -0700 (PDT) Received: (from cgd@localhost) by ldt-sj3-010.sj.broadcom.com ( 8.11.6/8.9.3) id h7MHNDh25298; Fri, 22 Aug 2003 10:23:13 -0700 X-Authentication-Warning: ldt-sj3-010.sj.broadcom.com: cgd set sender to cgd@broadcom.com using -f To: gdb-patches@sources.redhat.com Subject: Re-RFA re: [almost-obvious patch, and 6.0 RFA] treat mipsisa64 as 64-bit MIPS. From: cgd@broadcom.com Date: Fri, 22 Aug 2003 17:23:00 -0000 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 X-WSS-ID: 13588F27261014-01-01 Content-Type: multipart/mixed; boundary="=-=-=" X-SW-Source: 2003-08/txt/msg00393.txt.bz2 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 86 been over a week, normally wouldn't resend it, but Andrew's msg spurred me on. 8-) --=-=-= Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-length: 7142 Path: news.sj.broadcom.com!news-sj1-1.sj.broadcom.com!root From: cgd@broadcom.com Newsgroups: mlist.gnu.gdb.patches Subject: [almost-obvious patch, and 6.0 RFA] treat mipsisa64 as 64-bit MIPS. Date: Wed, 13 Aug 2003 19:43:49 +0000 (UTC) Organization: none given Lines: 94 Sender: daemon@news-sj1-1.sj.broadcom.com Message-ID: References: NNTP-Posting-Host: news-sj1-1.sj.broadcom.com X-Trace: news-sj1-1.sj.broadcom.com 1060803829 14191 10.16.130.241 (13 Aug 2003 19:43:49 GMT) X-Complaints-To: usenet@news-sj1-1.sj.broadcom.com NNTP-Posting-Date: Wed, 13 Aug 2003 19:43:49 +0000 (UTC) To: gdb-patches@sources.redhat.com Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm X-Received: from mail-irva-1.broadcom.com (mail-irva-1.broadcom.com [10.10.64.121]) by news-sj1-1.sj.broadcom.com (8.12.9/8.12.4/SSL) with ESMTP id h7DJhnQ8014182 for ; Wed, 13 Aug 2003 12:43:49 -0700 (PDT) X-Received: from mail-irva-2.broadcom.com ([10.10.64.122]) by mail-irva-1.broadcom.com (Post.Office MTA v3.5.3 release 223 ID# 0-72233U7200L2200S0V35) with ESMTP id com for ; Wed, 13 Aug 2003 12:43:48 -0700 X-Received: from mms1.broadcom.com (mms1 [63.70.210.58]) by mail-irva-2.broadcom.com (8.12.9/8.12.4/ISF) with ESMTP id h7DJhjwQ015081 for ; Wed, 13 Aug 2003 12: 43:45 -0700 (PDT) X-Received: from 67.72.78.213 by mms1.broadcom.com with SMTP (Broadcom SMTP Relay (MMS v5.5.2)); Wed, 13 Aug 2003 12:43:28 -0700 X-Received: (qmail 21322 invoked by alias); 13 Aug 2003 19:43:26 -0000 X-Precedence: bulk X-List-Unsubscribe: X-List-Subscribe: X-List-Archive: X-List-Post: X-List-Help: , X-Delivered-To: mailing list gdb-patches@sources.redhat.com X-Received: (qmail 21303 invoked from network); 13 Aug 2003 19:43:21 -0000 X-Received: from unknown (HELO mms1.broadcom.com) (63.70.210.58) by sources.redhat.com with SMTP; 13 Aug 2003 19:43:21 -0000 X-Received: from 63.70.210.1 by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (MMS v5.5.2)); Wed, 13 Aug 2003 12:42:45 -0700 X-Received: from mail-sj1-5.sj.broadcom.com (mail-sj1-5.sj.broadcom.com [10.16.128.236]) by mon-irva-11.broadcom.com (8.9.1/8.9.1) with ESMTP id MAA28240 for ; Wed, 13 Aug 2003 12: 42:18 -0700 (PDT) X-Received: from ldt-sj3-010.sj.broadcom.com (ldt-sj3-010 [10.21.64.10]) by mail-sj1-5.sj.broadcom.com (8.12.9/8.12.9/SSF) with ESMTP id h7DJgiov003163 for ; Wed, 13 Aug 2003 12:42:44 -0700 (PDT) X-Received: (from cgd@localhost) by ldt-sj3-010.sj.broadcom.com ( 8.11.6/8.9.3) id h7DJgiQ31111; Wed, 13 Aug 2003 12:42:44 -0700 X-Authentication-Warning: ldt-sj3-010.sj.broadcom.com: cgd set sender to cgd@broadcom.com using -f X-Lines: 93 X-User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-WSS-ID: 13244B3F100242-01-01 X-WSS-ID: 13244B55100295-01-01 X-Original-Message-ID: Xref: news.sj.broadcom.com mlist.gnu.gdb.patches:19185 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-length: 3627 Currently, the gdb configury doesn't DTRT with "mipsisa64", i.e., it doesn't treat it as 64-bit MIPS. This causes problems when you want to debug with sim, you end with the error: 18 [ldt-sj3-010] bin % mipsisa64-elf-gdb tGNU gdb 2003-08-11-cvs Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=mipsisa64-elf".a (gdb) target sim Size of register (0/0) incorrect (8 instead of 4))Connected to the simulator. (gdb) (I'm sure it causes other problems, too. 8-) So, this patch adds 'mipsisa64' variants for all of the generic 'mips64' configure.tgt entries. The reason this patch is *almost* but not quite obvious is that I don't know what the mips64*-big-* target is about. It looks suitably generic that, assuming it should exist at all, it should have a mipsisa64* entry. However i really don't know. (The -big- and -little- targets are confusing to me. I mean, why do they exist any more at all, and why is there only a 32-bit -little- target and no 64-bit one?) Note that I don't think that most of these targets are horribly useful anymore, but they should probably have "mipsisa64" variants for completeness. (The issue is that if you configure a mipsisa64-... GDB, e.g. mipsisa64sb1-..., you should get different simulator bits than if you do mips64-... Personally, the more I think about it, I think that the choice of "mipsisa32" and "mipsisa64" to name MIPS32/MIPS64 ISA targets was unfortunate... But I didn't set the trend, and it would have been wrong to name MIPS64 something other than mipsisa64 once mipsisa32 existed... *sigh*) Verified that this does the expected thing on the trunk with mipsisa64-elf. Also verified that it applies cleanly to the 6.0-branch configure.tgt, but not tested further than that. (read it, it won't cause harm. 8-) cgd -- 2003-08-13 Chris Demetriou * configure.tgt (mipsisa64*-big-*, mipsisa64*el-*-ecoff*) (mipsisa64*-*-ecoff*, mipsisa64*el-*-elf*) (mipsisa64*-*-elf*, mipsisa64*-*-linux*): Treat identically to corresponding "mips64" configurations. Index: configure.tgt =================================================================== RCS file: /cvs/src/src/gdb/configure.tgt,v retrieving revision 1.111 diff -u -p -r1.111 configure.tgt --- configure.tgt 1 Aug 2003 21:14:33 -0000 1.111 +++ configure.tgt 13 Aug 2003 17:43:12 -0000 @@ -144,16 +144,22 @@ m68*-*-vxworks*) gdb_target=vxworks68 ;; mcore*-*-*) gdb_target=mcore ;; mips64*-big-*) gdb_target=mips64 ;; +mipsisa64*-big-*) gdb_target=mips64 ;; mips*-big-*) gdb_target=mips ;; mips*-dec-*) gdb_target=mips ;; mips*-*-pe) gdb_target=wince ;; mips64*el-*-ecoff*) gdb_target=embedl64 ;; +mipsisa64*el-*-ecoff*) gdb_target=embedl64 ;; mips64*-*-ecoff*) gdb_target=embed64 ;; +mipsisa64*-*-ecoff*) gdb_target=embed64 ;; mips64*vr*-*-elf*) gdb_target=mips64 ;; mips*tx39*-elf*) gdb_target=tx39 ;; mips64*el-*-elf*) gdb_target=embedl64 ;; +mipsisa64*el-*-elf*) gdb_target=embedl64 ;; mips64*-*-elf*) gdb_target=embed64 ;; +mipsisa64*-*-elf*) gdb_target=embed64 ;; mips64*-*-linux*) gdb_target=linux64 ;; +mipsisa64*-*-linux*) gdb_target=linux64 ;; mips*el-*-ecoff*) gdb_target=embedl ;; mips*-*-ecoff*) gdb_target=embed ;; mips*el-*-elf*) gdb_target=embedl ;; --=-=-= Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 229 -- Chris Demetriou Broadcom Corporation Principal Design Engineer, Broadband Processors Any opinions expressed in this message are mine, not necessarily Broadcom's. --=-=-=--