This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[5.1/rfc] Obsolete MPW host
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [5.1/rfc] Obsolete MPW host
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 17 Apr 2001 19:29:25 -0400
Hello,
This is the last of the systems on the 5.1 hit list.
enjoy,
Andrew
2001-04-17 Andrew Cagney <ac131313@redhat.com>
* source.c (openp): Obsolete #ifdef MPW code.
(open_source_file): Ditto.
* event-top.c (display_gdb_prompt): Ditto.
* utils.c (query): Ditto.
(init_page_info): Ditto.
(init_page_info): Delete #ifndef MPW.
* top.c (gdb_readline): Ditto.
* mac-xdep.c: Obsolete.
* mac-gdb.r: Obsolete.
* config/powerpc/xm-mpw.h: Obsolete.
* config/xm-mpw.h: Obsolete.
* mpw-make.sed: Obsolete.
* mpw-config.in: Obsolete.
* TODO: Update
* NEWS: Update
Index: NEWS
===================================================================
RCS file: /cvs/src/src/gdb/NEWS,v
retrieving revision 1.22
diff -p -r1.22 NEWS
*** NEWS 2001/04/17 21:20:48 1.22
--- NEWS 2001/04/17 22:28:52
*************** PowerPC Netware powerpc-*-netware*
*** 27,32 ****
--- 27,33 ----
SunOS 4.0.Xi on i386 i[3456]86-*-sunos*
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 N/A
stuff.c (Program to stuff files into a specially prepared space in kdb)
kdb-start.c (Main loop for the standalone kernel debugger)
Index: TODO
===================================================================
RCS file: /cvs/src/src/gdb/TODO,v
retrieving revision 1.79
diff -p -r1.79 TODO
*** TODO 2001/04/17 21:20:48 1.79
--- TODO 2001/04/17 22:28:52
*************** MAINTAINERS file.
*** 160,167 ****
o arm-* vs NetBSD's lack of ``unix''
o arm-* vs IRIX (see below)
- o delete mpw?
-
-- 2001-03-15
Obsolete some targets.
--- 160,165 ----
*************** Steps:
*** 201,206 ****
--- 199,206 ----
powerpc-*-netware* powerpc - ppc-nw yes
w65-*-* w65 - w65 yes
i[3456]86-*-sunos* i386 sun386 sun386 yes
+ mpw m68k mpw mpw yes
+ mpw powerpc mpw mpw yes
(DONE)
Index: event-top.c
===================================================================
RCS file: /cvs/src/src/gdb/event-top.c,v
retrieving revision 1.13
diff -p -r1.13 event-top.c
*** event-top.c 2001/03/06 08:21:07 1.13
--- event-top.c 2001/04/17 22:28:54
*************** display_gdb_prompt (char *new_prompt)
*** 302,312 ****
the user is not accounted for. */
fputs_unfiltered (new_prompt, gdb_stdout);
! #ifdef MPW
! /* Move to a new line so the entered line doesn't have a prompt
! on the front of it. */
! fputs_unfiltered ("\n", gdb_stdout);
! #endif /* MPW */
gdb_flush (gdb_stdout);
}
}
--- 302,312 ----
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.12
diff -p -r1.12 source.c
*** source.c 2001/04/05 02:02:13 1.12
--- source.c 2001/04/17 22:28:56
*************** done:
*** 609,630 ****
filename, NULL);
}
}
! #ifdef MPW
! /* This is a debugging hack that can go away when all combinations
! of Mac and Unix names are handled reasonably. */
! {
! extern int debug_openp;
!
! if (debug_openp)
! {
! printf ("openp on %s, path %s mode %d prot %d\n returned %d",
! string, path, mode, prot, fd);
! if (*filename_opened)
! printf (" (filename is %s)", *filename_opened);
! printf ("\n");
! }
! }
! #endif /* MPW */
return fd;
}
--- 609,630 ----
filename, NULL);
}
}
! /* 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;
}
*************** open_source_file (struct symtab *s)
*** 710,731 ****
if (p != s->filename)
result = openp (path, 0, p, OPEN_MODE, 0, &s->fullname);
}
! #ifdef MPW
! if (result < 0)
! {
! /* Didn't work. Try using just the MPW basename. */
! p = (char *) mpw_basename (s->filename);
! if (p != s->filename)
! result = openp (path, 0, p, OPEN_MODE, 0, &s->fullname);
! }
! if (result < 0)
! {
! /* Didn't work. Try using the mixed Unix/MPW basename. */
! p = (char *) mpw_mixed_basename (s->filename);
! if (p != s->filename)
! result = openp (path, 0, p, OPEN_MODE, 0, &s->fullname);
! }
! #endif /* MPW */
if (result >= 0)
{
--- 710,731 ----
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.31
diff -p -r1.31 top.c
*** top.c 2001/04/05 15:19:42 1.31
--- top.c 2001/04/17 22:28:56
*************** gdb_readline (char *prompt_arg)
*** 1001,1011 ****
character position to be off, since the newline we read from
the user is not accounted for. */
fputs_unfiltered (prompt_arg, gdb_stdout);
! #ifdef MPW
! /* Move to a new line so the entered line doesn't have a prompt
! on the front of it. */
! fputs_unfiltered ("\n", gdb_stdout);
! #endif /* MPW */
gdb_flush (gdb_stdout);
}
--- 1001,1011 ----
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.39
diff -p -r1.39 utils.c
*** utils.c 2001/03/23 23:39:57 1.39
--- utils.c 2001/04/17 22:29:03
*************** query (char *ctlstr,...)
*** 1262,1272 ****
/* Automatically answer "yes" if input is not from a terminal. */
if (!input_from_terminal_p ())
return 1;
! #ifdef MPW
! /* FIXME Automatically answer "yes" if called from MacGDB. */
! if (mac_app)
! return 1;
! #endif /* MPW */
while (1)
{
--- 1262,1272 ----
/* 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)
{
*************** query (char *ctlstr,...)
*** 1282,1293 ****
if (annotation_level > 1)
printf_filtered ("\n\032\032query\n");
! #ifdef MPW
! /* If not in MacGDB, move to a new line so the entered line doesn't
! have a prompt on the front of it. */
! if (!mac_app)
! fputs_unfiltered ("\n", gdb_stdout);
! #endif /* MPW */
wrap_here ("");
gdb_flush (gdb_stdout);
--- 1282,1293 ----
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);
*************** init_page_info (void)
*** 1562,1568 ****
lines_per_page = 24;
chars_per_line = 80;
! #if !defined (MPW) && !defined (_WIN32)
/* No termcap under MPW, although might be cool to do something
by looking at worksheet or console window sizes. */
/* Initialize the screen height and width from termcap. */
--- 1562,1568 ----
lines_per_page = 24;
chars_per_line = 80;
! #if !defined (_WIN32)
/* No termcap under MPW, although might be cool to do something
by looking at worksheet or console window sizes. */
/* Initialize the screen height and width from termcap. */