diff options
author | Stan Shebs <shebs@codesourcery.com> | 1995-10-27 05:19:11 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1995-10-27 05:19:11 +0000 |
commit | e33bf0ab90929acd773ee2fe9b46e4aa18a4ed93 (patch) | |
tree | 9ce415e5378683a0c4555b2a9584982b774fe0c1 /gdb/config/m68k | |
parent | 7bd447bae3deee8af8c6ddd46973d53db7e48c1c (diff) | |
download | gdb-e33bf0ab90929acd773ee2fe9b46e4aa18a4ed93.zip gdb-e33bf0ab90929acd773ee2fe9b46e4aa18a4ed93.tar.gz gdb-e33bf0ab90929acd773ee2fe9b46e4aa18a4ed93.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/config/m68k')
-rw-r--r-- | gdb/config/m68k/xm-mpw.h | 69 |
1 files changed, 5 insertions, 64 deletions
diff --git a/gdb/config/m68k/xm-mpw.h b/gdb/config/m68k/xm-mpw.h index 71a311a..f0585b3 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 <xm-mpw.h> |