diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/config.guess src/config.guess --- src-orig/config.guess Tue Oct 22 11:13:56 2002 +++ src/config.guess Mon Jan 24 08:32:06 2005 @@ -219,6 +219,9 @@ mvme88k:OpenBSD:*:*) echo m88k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; + Power*Macintosh:Darwin:*:*) + echo powerpc-apple-darwin${UNAME_RELEASE} + exit 0 ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit 0 ;; diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/config.sub src/config.sub --- src-orig/config.sub Tue Oct 22 11:13:56 2002 +++ src/config.sub Mon Jan 24 08:32:06 2005 @@ -955,6 +955,8 @@ | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ | -macos* | -mpw* | -magic* | -mon960* | -lnews* ) ;; + -darwin*) + ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/configure src/configure --- src-orig/configure Tue Oct 22 11:13:56 2002 +++ src/configure Mon Jan 24 08:32:06 2005 @@ -697,6 +697,7 @@ if result=`${config_shell} ${configsub} ${host_alias}` ; then true else + echo "${config_shell} ${configsub} ${host_alias}." 1>&2 echo "Unrecognized host system name ${host_alias}." 1>&2 exit 1 fi Binary files src-orig/diff/cmp and src/diff/cmp differ Binary files src-orig/diff/diff and src/diff/diff differ Binary files src-orig/diff/diff3 and src/diff/diff3 differ Binary files src-orig/diff/sdiff and src/diff/sdiff differ diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/diff/stamp-h src/diff/stamp-h --- src-orig/diff/stamp-h Thu Jan 1 01:00:00 1970 +++ src/diff/stamp-h Mon Jan 24 08:30:40 2005 @@ -0,0 +1 @@ +Sat Dec 25 21:46:01 GMT 2004 diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/diff/system.h src/diff/system.h --- src-orig/diff/system.h Tue Oct 22 11:13:58 2002 +++ src/diff/system.h Mon Jan 24 08:30:40 2005 @@ -93,6 +93,15 @@ #if HAVE_FCNTL_H #include +#ifdef HAVE_SETMODE +#undef HAVE_SETMODE +#endif +#ifndef _O_BINARY +#define _O_BINARY 0 +#endif +#ifndef O_BINARY +#define O_BINARY _O_BINARY +#endif #else #if HAVE_SYS_FILE_H #include diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/gcc/configure src/gcc/configure --- src-orig/gcc/configure Tue Oct 22 11:14:13 2002 +++ src/gcc/configure Mon Jan 24 08:31:17 2005 @@ -4329,6 +4329,9 @@ xmake_file=romp/x-mach use_collect2=yes ;; + powerpc-apple-darwin*) + xmake_file=rs6000/x-darwin + ;; powerpc-*-beos*) cpu_type=rs6000 tm_file=rs6000/beos.h diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/gcc/configure.in src/gcc/configure.in --- src-orig/gcc/configure.in Tue Oct 22 11:14:13 2002 +++ src/gcc/configure.in Mon Jan 24 08:31:17 2005 @@ -2327,6 +2327,9 @@ xmake_file=romp/x-mach use_collect2=yes ;; + powerpc-apple-darwin*) + xmake_file=rs6000/x-darwin + ;; powerpc-*-beos*) cpu_type=rs6000 tm_file=rs6000/beos.h diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/gdb/config/powerpc/xm.h src/gdb/config/powerpc/xm.h --- src-orig/gdb/config/powerpc/xm.h Thu Jan 1 01:00:00 1970 +++ src/gdb/config/powerpc/xm.h Mon Jan 24 08:31:27 2005 @@ -0,0 +1,22 @@ +/* Macro definitions for running GDB on Apple Power Macintoshes. + Copyright (C) 1994 Free Software Foundation, Inc. + +This file is part of GDB. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#define HOST_BYTE_ORDER BIG_ENDIAN + +//#include diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/gdb/configure src/gdb/configure --- src-orig/gdb/configure Tue Oct 22 11:14:36 2002 +++ src/gdb/configure Mon Jan 24 08:31:32 2005 @@ -5586,13 +5586,13 @@ frags= host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh if test ! -f ${host_makefile_frag}; then -{ echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; } +{ echo "configure: error: "*** ${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh Gdb does not support host ${host}"" 1>&2; exit 1; } fi frags="$frags $host_makefile_frag" target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt if test ! -f ${target_makefile_frag}; then -{ echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; } +{ echo "configure: error: "*** ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt Gdb does not support target ${target}"" 1>&2; exit 1; } fi frags="$frags $target_makefile_frag" diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/gdb/configure.host src/gdb/configure.host --- src-orig/gdb/configure.host Tue Oct 22 11:14:36 2002 +++ src/gdb/configure.host Mon Jan 24 08:31:32 2005 @@ -28,6 +28,8 @@ case "${host}" in +powerpc-apple-darwin*) gdb_host=macos ;; + a29k-*-*) gdb_host=ultra3 ;; alpha*-*-osf1*) gdb_host=alpha-osf1 ;; diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/gdb/rdi-share/configure src/gdb/rdi-share/configure --- src-orig/gdb/rdi-share/configure Tue Oct 22 11:14:39 2002 +++ src/gdb/rdi-share/configure Mon Jan 24 08:31:24 2005 @@ -696,8 +696,9 @@ VERSION=1.0 +rm -f $srcdir/config.status if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } + { echo "configure: dir: [$srcdir] pwd: [`pwd`] error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } fi cat >> confdefs.h < #else diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/gdb/rdi-share/unixcomm.c src/gdb/rdi-share/unixcomm.c --- src-orig/gdb/rdi-share/unixcomm.c Tue Oct 22 11:14:39 2002 +++ src/gdb/rdi-share/unixcomm.c Mon Jan 24 08:31:24 2005 @@ -98,6 +98,13 @@ #define SERIAL_PREFIX "com" #endif +#ifndef SERPORT1 +#define SERPORT1 "/dev/ttya" +#define SERPORT2 "/dev/ttyb" +#define PARPORT1 "/dev/bpp0" +#define PARPORT2 "/dev/bpp1" +#endif + /* * Parallel port output pins, used for signalling to target */ diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/gdb/remote-rdp.c src/gdb/remote-rdp.c --- src-orig/gdb/remote-rdp.c Tue Oct 22 11:14:39 2002 +++ src/gdb/remote-rdp.c Mon Jan 24 08:31:34 2005 @@ -490,7 +490,7 @@ abort (); } } - va_end (args); + va_end (alist); if (dst != buf) abort (); diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/gdb/xm.h src/gdb/xm.h --- src-orig/gdb/xm.h Thu Jan 1 01:00:00 1970 +++ src/gdb/xm.h Mon Jan 24 08:31:36 2005 @@ -0,0 +1,26 @@ +/* Macro definitions for running GDB on Apple Power Macintoshes. + Copyright (C) 1994 Free Software Foundation, Inc. + +This file is part of GDB. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#define HOST_BYTE_ORDER BIG_ENDIAN + +#ifndef __unix +#define __unix +#endif + +//#include diff -ruN --exclude config.cache --exclude config.status --exclude Makefile --exclude *.o --exclude config.h --exclude config.log src-orig/libstdc++/stdexcepti.cc src/libstdc++/stdexcepti.cc --- src-orig/libstdc++/stdexcepti.cc Tue Oct 22 11:14:50 2002 +++ src/libstdc++/stdexcepti.cc Mon Jan 24 08:31:48 2005 @@ -12,10 +12,10 @@ void __out_of_range (const char *s) { - throw out_of_range (s); + // throw out_of_range (s); } void __length_error (const char *s) { - throw length_error (s); + //throw length_error (s); }