From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24314 invoked by alias); 31 Jan 2008 22:21:32 -0000 Received: (qmail 24306 invoked by uid 22791); 31 Jan 2008 22:21:31 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 31 Jan 2008 22:21:07 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id C059998217; Thu, 31 Jan 2008 22:21:05 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id A3D0898214; Thu, 31 Jan 2008 22:21:05 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JKhmK-0001tR-KE; Thu, 31 Jan 2008 17:21:04 -0500 Date: Thu, 31 Jan 2008 22:35:00 -0000 From: Daniel Jacobowitz To: Markus Deuling Cc: GDB Patches Subject: Re: Bug in mips:3900 arch ? Message-ID: <20080131222104.GC6715@caradoc.them.org> Mail-Followup-To: Markus Deuling , GDB Patches References: <479DEAAA.4050108@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <479DEAAA.4050108@de.ibm.com> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes 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: 2008-01/txt/msg00879.txt.bz2 On Mon, Jan 28, 2008 at 03:46:02PM +0100, Markus Deuling wrote: > Hi, > > I'm currently writing a little helper script a la gdb_mbuild.sh to cover > the new "--enable-targets-all" flag and I think I found a bug. > > This GDB was configured as "i686-pc-linux-gnu". > (gdb) set architecture mips:3900 > /home/deuling/gdb/dev/gdb/mips-linux-tdep.c:1152: internal-error: can't handle ABI > A problem internal to GDB has been detected, > further debugging may prove unreliable. > Quit this debugging session? (y or n) > > "mips:3900" is one of the possible target architectures given by GDB when invoking "set architecture" without a parameter. > Shouldn't this work? For my opinion it should always be possible to switch to one of these archs without crashing. Yes, this looks like a bug. It is caused by the special case in mips_gdbarch_init, by the comment: /* Try the architecture for any hint of the correct ABI. */ I think replacing the internal error by "return" or "break" would be safe. No real Linux application will ever have the EABI32 or EABI64 ABIs. -- Daniel Jacobowitz CodeSourcery