From e33bf0ab90929acd773ee2fe9b46e4aa18a4ed93 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Fri, 27 Oct 1995 05:19:11 +0000 Subject: [PATCH] * config/xm-mpw.h: New file, all-Mac host support. * config/m68k/xm-mpw.h: Move most definitions into generic Mac support. * config/powerpc/xm-mpw.h: New file, PowerMac host support. --- gdb/ChangeLog | 6 ++- gdb/config/m68k/xm-mpw.h | 69 +++---------------------------- gdb/config/powerpc/xm-mpw.h | 22 ++++++++++ gdb/config/xm-mpw.h | 81 +++++++++++++++++++++++++++++++++++++ 4 files changed, 113 insertions(+), 65 deletions(-) create mode 100644 gdb/config/powerpc/xm-mpw.h create mode 100644 gdb/config/xm-mpw.h diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9e6ee238c02..8b8b6b02a61 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -7,7 +7,11 @@ Thu Oct 26 22:02:27 1995 Stan Shebs (GestaltEqu.h): Include Gestalt.h instead. (do_mouse_down): Comment out control tracking, needs to be updated to use UPP before will work on PowerMac. - + * config/xm-mpw.h: New file, all-Mac host support. + * config/m68k/xm-mpw.h: Move most definitions into generic Mac + support. + * config/powerpc/xm-mpw.h: New file, PowerMac host support. + Thu Oct 26 15:21:32 1995 Brendan Kehoe * regex.h: Renamed to gnu-regex.h. diff --git a/gdb/config/m68k/xm-mpw.h b/gdb/config/m68k/xm-mpw.h index 71a311a5d3b..f0585b38a3a 100644 --- a/gdb/config/m68k/xm-mpw.h +++ b/gdb/config/m68k/xm-mpw.h @@ -1,5 +1,5 @@ -/* Macro definitions for running GDB on Apple Macintoshes. - Copyright (C) 1994 Free Software Foundation, Inc. +/* Macro definitions for running GDB on Apple 68k-based Macintoshes. + Copyright (C) 1994, 1995 Free Software Foundation, Inc. This file is part of GDB. @@ -17,67 +17,8 @@ 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. */ -#include "m68k/xm-m68k.h" +#define HOST_BYTE_ORDER BIG_ENDIAN -#include "mpw.h" +/* Use angle brackets so that the common xm-mpw.h is found. */ -#include "fopen-bin.h" - -#include "spin.h" - -#define CANT_FORK - -/* Map these standard functions to versions that can do I/O in a console - window. */ - -#define printf hacked_printf -#define fprintf hacked_fprintf -#define vprintf hacked_vfprintf -#define fputs hacked_fputs -#define fputc hacked_fputc -#undef putc -#define putc hacked_putc -#define fflush hacked_fflush - -#define fgetc hacked_fgetc - -#define POSIX_UTIME - -/* No declaration of strdup in MPW's string.h, oddly enough. */ - -char *strdup (char *s1); - -/* '.' indicates drivers on the Mac, so we need a different filename. */ - -#define GDBINIT_FILENAME "_gdbinit" - -/* Commas are more common to separate dirnames in a path on Macs. */ - -#define DIRNAME_SEPARATOR ',' - -/* This is a real crufty hack. */ - -#define HAVE_TERMIO - -/* Addons to the basic MPW-supported signal list. */ - -#ifndef SIGQUIT -#define SIGQUIT (1<<6) -#endif -#ifndef SIGHUP -#define SIGHUP (1<<7) -#endif - -/* If __STDC__ is on, then this definition will be missing. */ - -#ifndef fileno -#define fileno(p) (p)->_file -#endif - -#ifndef R_OK -#define R_OK 4 -#endif - -extern int StandAlone; - -extern int mac_app; +#include diff --git a/gdb/config/powerpc/xm-mpw.h b/gdb/config/powerpc/xm-mpw.h new file mode 100644 index 00000000000..6b33ca206ba --- /dev/null +++ b/gdb/config/powerpc/xm-mpw.h @@ -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 --git a/gdb/config/xm-mpw.h b/gdb/config/xm-mpw.h new file mode 100644 index 00000000000..0c473d75572 --- /dev/null +++ b/gdb/config/xm-mpw.h @@ -0,0 +1,81 @@ +/* Macro definitions for running GDB on Apple Macintoshes. + Copyright (C) 1994, 1995 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. */ + +#include "mpw.h" + +#include "fopen-bin.h" + +#include "spin.h" + +#define CANT_FORK + +/* Map these standard functions to versions that can do I/O in a console + window. */ + +#define printf hacked_printf +#define fprintf hacked_fprintf +#define vprintf hacked_vfprintf +#define fputs hacked_fputs +#define fputc hacked_fputc +#undef putc +#define putc hacked_putc +#define fflush hacked_fflush + +#define fgetc hacked_fgetc + +#define POSIX_UTIME + +/* No declaration of strdup in MPW's string.h, oddly enough. */ + +char *strdup (char *s1); + +/* '.' indicates drivers on the Mac, so we need a different filename. */ + +#define GDBINIT_FILENAME "_gdbinit" + +/* Commas are more common to separate dirnames in a path on Macs. */ + +#define DIRNAME_SEPARATOR ',' + +/* This is a real crufty hack. */ + +#define HAVE_TERMIO + +/* Addons to the basic MPW-supported signal list. */ + +#ifndef SIGQUIT +#define SIGQUIT (1<<6) +#endif +#ifndef SIGHUP +#define SIGHUP (1<<7) +#endif + +/* If __STDC__ is on, then this definition will be missing. */ + +#ifndef fileno +#define fileno(p) (p)->_file +#endif + +#ifndef R_OK +#define R_OK 4 +#endif + +extern int StandAlone; + +extern int mac_app; -- 2.30.2