MPW config stuff for GDB.

This commit is contained in:
Stan Shebs 1994-03-23 22:25:00 +00:00
parent 698ce51f3f
commit ea936fd77b
2 changed files with 113 additions and 2 deletions

View file

@ -1,4 +1,6 @@
# Each directory to survive it's way into a release will need a file
# .Sanitize for devo/gdb/config/m68k.
# Each directory to survive its way into a release will need a file
# like this one called "./.Sanitize". All keyword lines must exist,
# and must exist in the order specified by this file. Each directory
# in the tree will be processed, top down, in the following order.
@ -9,10 +11,24 @@
# The lines between the "Do-first:" line and the "Things-to-keep:"
# line are executed as a /bin/sh shell script before anything else is
# done in this
# done in this directory.
Do-first:
mpw_files="xm-mpw.h"
if ( echo $* | grep keep\-mpw > /dev/null ) ; then
keep_these_too="${mpw_files}"
if [ -n "${verbose}" ] ; then
echo Keeping ${mpw_files}
fi
else
lose_these_too="${mpw_files}"
if [ -n "${verbose}" ] ; then
echo Deleting ${mpw_files}
fi
fi
# All files listed between the "Things-to-keep:" line and the
# "Files-to-sed:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize

95
gdb/config/m68k/xm-mpw.h Normal file
View file

@ -0,0 +1,95 @@
/* Macro definitions for running GDB on Apple 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "m68k/xm-m68k.h"
#include "fopen-bin.h"
#define CANT_FORK
/* MPW C is basically ANSI, but doesn't actually enable __STDC__,
nor does it allow __STDC__ to be #defined. */
#ifndef ALMOST_STDC
#define ALMOST_STDC
#endif
#ifdef BFD_TRUE_FALSE
#ifndef false
#define false mpw_false
#endif
#ifndef true
#define true mpw_true
#endif
#endif
#ifdef MPW_C
#undef __PTR_TO_INT
#define __PTR_TO_INT(P) ((int)(P))
#undef __INT_TO_PTR
#define __INT_TO_PTR(P) ((char *)(P))
#endif
#include <stdio.h>
FILE *mpw_fopen ();
int mpw_fseek ();
void mpw_abort ();
/* Map these standard functions to improved versions in libiberty. */
#define fopen mpw_fopen
#define open mpw_open
#define fseek mpw_fseek
#define abort mpw_abort
/* Define as macros so as to mask the previous enum. */
#ifndef BFD_TRUE_FALSE
#ifndef false
#define false ffalse
#endif
#ifndef true
#define true ttrue
#endif
#endif
#ifndef TRUE_FALSE_ALREADY_DEFINED
#define TRUE_FALSE_ALREADY_DEFINED
#endif
#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"
#define PATHNAME_SEPARATOR ','
#define PATHNAME_SEPARATOR_STRING ","
/* This is a real crufty hack. */
#define HAVE_TERMIO