Bug in mips:3900 arch ?
Daniel Jacobowitz
drow@false.org
Thu Jan 31 22:35:00 GMT 2008
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
More information about the Gdb-patches
mailing list