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] remove MacOS <10 support


Hello,

This removes MacOS support from GDB.  This endith the removal of code 
made obsolete in GDB 5.1 and lets me start making code that will be 
obsolete in 5.2, the a29k is first.

I should confess that in 5.1 I didn't quite tag all the files being 
removed with OBSOLETE.  I did however, get sufficient to make GDB very 
unbuildable on MacOS <10.

I've also omitted the files being deleted from the attached patch.

enjoy,
Andrew
2002-01-05  Andrew Cagney  <ac131313@redhat.com>

	* configure.tgt: Remove powerpc-*-macos* target.
	* config/m68k/xm-mpw.h: Delete file.
	* config/xm-mpw.h: Delete file.
	* ser-mac.c: Delete file.
	* mpw-make.sed: Delete file.
	* mpw-config.in: Delete file.
	* mac-xdep.c: Delete file.
	* mac-gdb.r: Delete file.
	* mac-defs.h: Delete file.
	* mac-nat.c: Delete file.
	* config/powerpc/macos.mh: Delete file.
	* config/powerpc/macos.mt: Delete file.
	* config/powerpc/nm-macos.h: Delete file.
	* config/powerpc/tm-macos.h: Delete file.
	* source.c (openp, open_source_file): Remove obsolete code.
	* top.c	(gdb_readline): Ditto.
	* utils.c (query): Ditto.
	* event-top.c (display_gdb_prompt): Ditto.
	* Makefile.in (ser-mac.o): Delete obsolete target.
	* NEWS: Update.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.145
diff -u -r1.145 Makefile.in
--- Makefile.in	2001/12/30 00:14:50	1.145
+++ Makefile.in	2002/01/05 05:18:25
@@ -1990,8 +1990,6 @@
 
 ser-go32.o: ser-go32.c $(defs_h) $(serial_h) 
 
-# OBSOLETE ser-mac.o: ser-mac.c $(defs_h) $(serial_h) 
-
 ser-pipe.o: ser-pipe.c $(defs_h) $(serial_h) $(gdb_string_h) $(ser_unix_h)
 
 ser-tcp.o: ser-tcp.c $(defs_h) $(serial_h) $(gdb_string_h) $(ser_unix_h)
Index: NEWS
===================================================================
RCS file: /cvs/src/src/gdb/NEWS,v
retrieving revision 1.47
diff -u -r1.47 NEWS
--- NEWS	2001/12/17 18:13:11	1.47
+++ NEWS	2002/01/05 05:18:26
@@ -25,6 +25,7 @@
 Ultracomputer (29K) running Sym1		a29k-nyu-sym1 a29k-*-kern*
 Sony NEWS (68K) running NEWSOS 3.x		m68*-sony-sysv news
 ISI Optimum V (3.05) under 4.3bsd.		m68*-isi-*
+Apple Macintosh (MPW) host and target		N/A host, powerpc-*-macos*
 
 * Changes to command line processing
 
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.47
diff -u -r1.47 configure.tgt
--- configure.tgt	2001/12/21 09:53:58	1.47
+++ configure.tgt	2002/01/05 05:18:27
@@ -221,7 +221,6 @@
 ns32k-*-netbsd*)	gdb_target=nbsd
 		configdirs="${configdirs} gdbserver" ;;
 
-powerpc-*-macos*)	gdb_target=macos ;;
 powerpc-*-netbsd*)	gdb_target=nbsd
 		configdirs="${configdirs} gdbserver" ;;
 powerpc-*-aix*)		gdb_target=aix ;;
Index: event-top.c
===================================================================
RCS file: /cvs/src/src/gdb/event-top.c,v
retrieving revision 1.17
diff -u -r1.17 event-top.c
--- event-top.c	2001/11/27 04:15:09	1.17
+++ event-top.c	2002/01/05 05:18:27
@@ -1,5 +1,5 @@
 /* Top level stuff for GDB, the GNU debugger.
-   Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
    Written by Elena Zannoni <ezannoni@cygnus.com> of Cygnus Solutions.
 
    This file is part of GDB.
@@ -307,12 +307,6 @@
          character position to be off, since the newline we read from
          the user is not accounted for.  */
       fputs_unfiltered (new_prompt, gdb_stdout);
-
-      /* OBSOLETE #ifdef MPW */
-      /* OBSOLETE        *//* Move to a new line so the entered line doesn't have a prompt */
-      /* OBSOLETE          on the front of it. */
-      /* OBSOLETE       fputs_unfiltered ("\n", gdb_stdout); */
-      /* OBSOLETE #endif  *//* MPW */
       gdb_flush (gdb_stdout);
     }
 }
Index: source.c
===================================================================
RCS file: /cvs/src/src/gdb/source.c,v
retrieving revision 1.22
diff -u -r1.22 source.c
--- source.c	2001/12/21 22:32:37	1.22
+++ source.c	2002/01/05 05:18:29
@@ -1,6 +1,7 @@
 /* List lines of source files for GDB, the GNU debugger.
-   Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
-   1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
+   1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+   Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -626,22 +627,6 @@
 	  xfree (f);
 	}
     }
-  /* OBSOLETE #ifdef MPW  */
-  /* OBSOLETE This is a debugging hack that can go away when all combinations */
-  /* OBSOLETE of Mac and Unix names are handled reasonably.  */
-  /* OBSOLETE   { */
-  /* OBSOLETE     extern int debug_openp; */
-  /* OBSOLETE  */
-  /* OBSOLETE     if (debug_openp) */
-  /* OBSOLETE       { */
-  /* OBSOLETE 	printf ("openp on %s, path %s mode %d prot %d\n  returned %d", */
-  /* OBSOLETE 		string, path, mode, prot, fd); */
-  /* OBSOLETE 	if (*filename_opened) */
-  /* OBSOLETE 	  printf (" (filename is %s)", *filename_opened); */
-  /* OBSOLETE 	printf ("\n"); */
-  /* OBSOLETE       } */
-  /* OBSOLETE   } */
-  /* OBSOLETE #endif  *//* MPW */
 
   return fd;
 }
@@ -727,22 +712,6 @@
       if (p != s->filename)
 	result = openp (path, 0, p, OPEN_MODE, 0, &s->fullname);
     }
-  /* OBSOLETE #ifdef MPW */
-  /* OBSOLETE   if (result < 0) */
-  /* OBSOLETE     { */
-  /* OBSOLETE        *//* Didn't work.  Try using just the MPW basename. */
-  /* OBSOLETE       p = (char *) mpw_basename (s->filename); */
-  /* OBSOLETE       if (p != s->filename) */
-  /* OBSOLETE 	result = openp (path, 0, p, OPEN_MODE, 0, &s->fullname); */
-  /* OBSOLETE     } */
-  /* OBSOLETE   if (result < 0) */
-  /* OBSOLETE     { */
-  /* OBSOLETE        *//* Didn't work.  Try using the mixed Unix/MPW basename. */
-  /* OBSOLETE       p = (char *) mpw_mixed_basename (s->filename); */
-  /* OBSOLETE       if (p != s->filename) */
-  /* OBSOLETE 	result = openp (path, 0, p, OPEN_MODE, 0, &s->fullname); */
-  /* OBSOLETE     } */
-  /* OBSOLETE #endif MPW */
 
   if (result >= 0)
     {
Index: top.c
===================================================================
RCS file: /cvs/src/src/gdb/top.c,v
retrieving revision 1.50
diff -u -r1.50 top.c
--- top.c	2001/11/27 04:15:09	1.50
+++ top.c	2002/01/05 05:18:30
@@ -1,7 +1,9 @@
 /* Top level stuff for GDB, the GNU debugger.
-   Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
-   1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 
+   Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
+   1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
+   Free Software Foundation, Inc.
+
    This file is part of GDB.
 
    This program is free software; you can redistribute it and/or modify
@@ -890,11 +892,6 @@
          character position to be off, since the newline we read from
          the user is not accounted for.  */
       fputs_unfiltered (prompt_arg, gdb_stdout);
-      /* OBSOLETE #ifdef MPW */
-      /* OBSOLETE          Move to a new line so the entered line doesn't have a prompt */
-      /* OBSOLETE          on the front of it. */
-      /* OBSOLETE       fputs_unfiltered ("\n", gdb_stdout); */
-      /* OBSOLETE #endif  *//* MPW */
       gdb_flush (gdb_stdout);
     }
 
Index: utils.c
===================================================================
RCS file: /cvs/src/src/gdb/utils.c,v
retrieving revision 1.53
diff -u -r1.53 utils.c
--- utils.c	2001/12/21 22:32:37	1.53
+++ utils.c	2002/01/05 05:18:31
@@ -1,6 +1,6 @@
 /* General utility routines for GDB, the GNU debugger.
-   Copyright 1986, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
-   1997, 1998, 1999, 2000, 2001
+   Copyright 1986, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
+   1996, 1997, 1998, 1999, 2000, 2001, 2002
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -1237,11 +1237,6 @@
   /* Automatically answer "yes" if input is not from a terminal.  */
   if (!input_from_terminal_p ())
     return 1;
-  /* OBSOLETE #ifdef MPW */
-  /* OBSOLETE    *//* FIXME Automatically answer "yes" if called from MacGDB.  */
-  /* OBSOLETE   if (mac_app) */
-  /* OBSOLETE     return 1; */
-  /* OBSOLETE #endif  *//* MPW */
 
   while (1)
     {
@@ -1256,13 +1251,6 @@
 
       if (annotation_level > 1)
 	printf_filtered ("\n\032\032query\n");
-
-      /* OBSOLETE #ifdef MPW */
-      /* OBSOLETE        *//* If not in MacGDB, move to a new line so the entered line doesn't */
-      /* OBSOLETE          have a prompt on the front of it. */
-      /* OBSOLETE       if (!mac_app) */
-      /* OBSOLETE 	fputs_unfiltered ("\n", gdb_stdout); */
-      /* OBSOLETE #endif  *//* MPW */
 
       wrap_here ("");
       gdb_flush (gdb_stdout);

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