This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re-RFA re: [almost-obvious patch, and 6.0 RFA] treatmipsisa64 as 64-bit MIPS.


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 ;;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]