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]

[PATCH/SPARC] Add Solaris UltraSPARC


Mostly untested, but it might work.  Hopefully somebody else can test
this properly.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>
 
	* configure.host: Add sparc64-*-solaris2* and sparcv9-*-solaris2*.
	* configure.tgt: Add sparc64-*-solaris2* and sparcv9-*-solaris2*.
	* config/sparc/sol64.mh: New file.
	* config/sparc/sol64.mt: New file.
	* Makefile.in (sparc64-sol2-nat.o): Fix typo.


 
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.445.2.5
diff -u -p -r1.445.2.5 Makefile.in
--- Makefile.in 2 Nov 2003 20:26:32 -0000 1.445.2.5
+++ Makefile.in 2 Nov 2003 20:52:41 -0000
@@ -2333,9 +2333,9 @@ sparc64-linux-nat.o: sparc64-linux-nat.c
 	$(sparc64_tdep_h) $(sparc_nat_h)
 sparc64-linux-tdep.o: sparc64-linux-tdep.c $(defs_h) $(gdbarch_h) \
 	$(osabi_h) $(solib_svr4_h) $(sparc64_tdep_h)
-sparc64-sol2-nat.o: sparc64-sol2-nat.o $(defs_h) $(gregset_h) $(regcache_h) \
+sparc64-sol2-nat.o: sparc64-sol2-nat.c $(defs_h) $(gregset_h) $(regcache_h) \
 	$(sparc64_tdep_h)
-sparc64-sol2-tdep.c: sparc64-sol2-tdep.o $(defs_h) $(gdbarch_h) $(symtab_h) \
+sparc64-sol2-tdep.o: sparc64-sol2-tdep.c $(defs_h) $(gdbarch_h) $(symtab_h) \
 	$(objfiles_h) $(osabi_h) $(sparc64_tdep_h)
 sparc64fbsd-tdep.o: sparc64fbsd-tdep.c $(defs_h) $(gdbcore_h) $(osabi_h) \
 	$(regcache_h) $(target_h) $(gdb_string_h) $(sparc64_tdep_h)
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.116.4.3
diff -u -p -r1.116.4.3 configure.tgt
--- configure.tgt 2 Nov 2003 20:26:32 -0000 1.116.4.3
+++ configure.tgt 2 Nov 2003 20:52:41 -0000
@@ -202,10 +202,13 @@ sh*-*-netbsdelf*)	gdb_target=nbsd ;;
 sh-*-nto*)		gdb_target=nto ;;
 sh*)			gdb_target=embed ;;
 
-sparc-*-solaris2*)	gdb_target=sol2 ;;
 sparc-*-linux*)		gdb_target=linux ;;
+sparc-*-solaris2*)	gdb_target=sol2 ;;
 sparc-*-*)		gdb_target=sparc ;;
 sparc64-*-linux*)	gdb_target=linux64 ;;
+sparc64-*-solaris2* | sparcv9-*-solaris2*)
+			gdb_target=sol64
+			;;
 
 xstormy16-*-*)          gdb_target=xstormy16 ;;
 
Index: configure.host
===================================================================
RCS file: /cvs/src/src/gdb/configure.host,v
retrieving revision 1.57.4.3
diff -u -p -r1.57.4.3 configure.host
--- configure.host 2 Nov 2003 20:26:32 -0000 1.57.4.3
+++ configure.host 2 Nov 2003 20:52:41 -0000
@@ -130,10 +130,13 @@ s390*-*-*)		gdb_host=s390 ;;
 
 sh*-*-netbsdelf*)	gdb_host=nbsd ;;
 
-sparc-*-solaris2*)	gdb_host=sol2 ;;
 sparc-*-linux*)		gdb_host=linux ;;
+sparc-*-solaris2*)	gdb_host=sol2 ;;
 sparc64-*-freebsd*)	gdb_host=fbsd ;;
 sparc64-*-linux*)	gdb_host=linux64 ;;
+sparc64-*-solaris2* | sparcv9-*-solaris2*)
+			gdb_host=sol64
+			;;
 
 vax-*-bsd*)		gdb_host=vaxbsd ;;
 vax-*-ultrix2*)		gdb_host=vaxult2 ;;
Index: config/sparc/sol64.mh
===================================================================
RCS file: config/sparc/sol64.mh
diff -N config/sparc/sol64.mh
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ config/sparc/sol64.mh 2 Nov 2003 20:52:41 -0000
@@ -0,0 +1,6 @@
+# Host: Solaris UltraSPARC
+NAT_FILE= nm-sol2.h
+NATDEPFILES= sparc64-sol2-nat.o \
+	corelow.o core-regset.o fork-child.o \
+	procfs.o proc-api.o proc-events.o proc-flags.o proc-why.o \
+	solib.o solib-svr4.o solib-legacy.o
Index: config/sparc/sol64.mt
===================================================================
RCS file: config/sparc/sol64.mt
diff -N config/sparc/sol64.mt
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ config/sparc/sol64.mt 2 Nov 2003 20:52:41 -0000
@@ -0,0 +1,3 @@
+# Target: Solaris UltraSPARC
+TDEPFILES= sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o sparc-sol2-tdep.o
+TM_FILE= tm-sol2.h


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