[RFA] Darwin Port (Part 1: changes in common files)

Tristan Gingold gingold@adacore.com
Mon Nov 10 10:21:00 GMT 2008


diff -c -r1.101 configure.host
*** configure.host	19 Jan 2008 15:03:50 -0000	1.101
--- configure.host	10 Nov 2008 10:19:14 -0000
***************
*** 62,67 ****
--- 62,69 ----

   case "${host}" in

+ *-apple-darwin*)	gdb_host=macosx ;;
+
   alpha*-*-osf[3456789]*)	gdb_host=alpha-osf3 ;;
   alpha*-*-linux*)	gdb_host=alpha-linux ;;
   alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.204
diff -c -r1.204 configure.tgt
*** configure.tgt	2 Oct 2008 15:48:06 -0000	1.204
--- configure.tgt	10 Nov 2008 10:19:15 -0000
***************
*** 145,150 ****
--- 145,155 ----
   	gdb_target_obs="hppa-tdep.o"
   	;;

+ i[34567]86-*-darwin*)
+ 	# Target: Darwin/i386
+ 	gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
+ 			i386-macosx-tdep.o"
+ 	;;
   i[34567]86-*-dicos*)
   	# Target: DICOS/i386
   	gdb_target_obs="i386-tdep.o i387-tdep.o \
Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.241
diff -c -r1.241 defs.h
*** defs.h	5 Nov 2008 20:23:07 -0000	1.241
--- defs.h	10 Nov 2008 10:19:15 -0000
***************
*** 958,963 ****
--- 958,966 ----
     GDB_OSABI_AIX,
     GDB_OSABI_DICOS,

+   GDB_OSABI_DARWIN,
+   GDB_OSABI_DARWIN64,
+
     GDB_OSABI_INVALID		/* keep this last */
   };

Index: osabi.c
===================================================================
RCS file: /cvs/src/src/gdb/osabi.c,v
retrieving revision 1.43
diff -c -r1.43 osabi.c
*** osabi.c	1 May 2008 23:09:14 -0000	1.43
--- osabi.c	10 Nov 2008 10:19:15 -0000
***************
*** 73,78 ****
--- 73,80 ----
     "Cygwin",
     "AIX",
     "DICOS",
+   "Darwin",
+   "Darwin64",

     "<invalid>"
   };



More information about the Gdb-patches mailing list