This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Re-RFA re: [almost-obvious patch, and 6.0 RFA] treatmipsisa64 as 64-bit MIPS.
- From: cgd at broadcom dot com
- To: ac131313 at redhat dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: 25 Aug 2003 15:58:41 -0700
- Subject: Re: Re-RFA re: [almost-obvious patch, and 6.0 RFA] treatmipsisa64 as 64-bit MIPS.
- References: <yov57k55obcu.fsf@ldt-sj3-010.sj.broadcom.com><3F4A2B9B.90409@redhat.com> <mailpost.1061825447.14133@news-sj1-1>
At Mon, 25 Aug 2003 15:30:47 +0000 (UTC), "Andrew Cagney" wrote:
> - put the patterns at the start, vis:
> mipsisa64*-*-linux* ) gdb_target=linux64 ;;
> mipsisa64*-*-* ) gdb_target=embed64 ;;
> I think this is all that is needed. It seems that my recent MIPS
> target purge missed a few cases.
ahh, yes.
Looks like:
tx39.mt == tx39l.mt
embed64.mt == embedl64.mt
mips.mt == embedl.mt (!!! except for comments; this one is puzzling!)
so probably more could be collapsed later.
> It can probably be simplified further (mips*64*-*-*?) but, as you
> note, harm minimization is in order.
Yeah, for some reason i don't like using "mips*64". dunno why it bugs
me, though.
Patch as re-tested with mipsisa64-elf gdb and checked in (trunk &
branch) is below.
thanks,
chris
--
2003-08-25 Chris Demetriou <cgd@broadcom.com>
* configure.tgt: Document need for special "mipsisa64" handling.
(mipsisa64*-*-linux64): Handle as target linux64.
(mipsisa64*-*-*): Handle as target embed64.
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 25 Aug 2003 22:55:39 -0000
@@ -143,6 +143,12 @@ m68*-*-sysv4*) gdb_target=m68kv4 ;;
m68*-*-vxworks*) gdb_target=vxworks68 ;;
mcore*-*-*) gdb_target=mcore ;;
+
+# "mipsisa64" targets are 64-bit MIPS, MIPS64 ISA. They need these
+# special cases because otherwise they (obviously) are not matched by
+# the "mips64" target cases, and would therefore be treated as 32-bit.
+mipsisa64*-*-linux*) gdb_target=linux64 ;;
+mipsisa64*-*-*) gdb_target=embed64 ;;
mips64*-big-*) gdb_target=mips64 ;;
mips*-big-*) gdb_target=mips ;;
mips*-dec-*) gdb_target=mips ;;