This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Bug in mips:3900 arch ?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Markus Deuling <deuling at de dot ibm dot com>
- Cc: GDB Patches <gdb-patches at sourceware dot org>
- Date: Thu, 31 Jan 2008 17:21:04 -0500
- Subject: Re: Bug in mips:3900 arch ?
- References: <479DEAAA.4050108@de.ibm.com>
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