OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [config/] [xm-mpw.h] - Diff between revs 106 and 107

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 106 Rev 107
/* Macro definitions for running GDB on Apple Macintoshes.
/* Macro definitions for running GDB on Apple Macintoshes.
   Copyright (C) 1994, 1995 Free Software Foundation, Inc.
   Copyright (C) 1994, 1995 Free Software Foundation, Inc.
 
 
   This file is part of GDB.
   This file is part of GDB.
 
 
   This program is free software; you can redistribute it and/or modify
   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
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
   (at your option) any later version.
 
 
   This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   GNU General Public License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330,
   Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */
   Boston, MA 02111-1307, USA.  */
 
 
#include "mpw.h"
#include "mpw.h"
 
 
#include "fopen-bin.h"
#include "fopen-bin.h"
 
 
#include "spin.h"
#include "spin.h"
 
 
#define CANT_FORK
#define CANT_FORK
 
 
/* Map these standard functions to versions that can do I/O in a console
/* Map these standard functions to versions that can do I/O in a console
   window. */
   window. */
 
 
#define printf hacked_printf
#define printf hacked_printf
#define fprintf hacked_fprintf
#define fprintf hacked_fprintf
#define vprintf hacked_vfprintf
#define vprintf hacked_vfprintf
#define fputs hacked_fputs
#define fputs hacked_fputs
#define fputc hacked_fputc
#define fputc hacked_fputc
#undef putc
#undef putc
#define putc hacked_putc
#define putc hacked_putc
#define fflush hacked_fflush
#define fflush hacked_fflush
 
 
#define fgetc hacked_fgetc
#define fgetc hacked_fgetc
 
 
#define POSIX_UTIME
#define POSIX_UTIME
 
 
/* No declaration of strdup in MPW's string.h, oddly enough. */
/* No declaration of strdup in MPW's string.h, oddly enough. */
 
 
char *strdup (char *s1);
char *strdup (char *s1);
 
 
/* '.' indicates drivers on the Mac, so we need a different filename. */
/* '.' indicates drivers on the Mac, so we need a different filename. */
 
 
#define GDBINIT_FILENAME "_gdbinit"
#define GDBINIT_FILENAME "_gdbinit"
 
 
/* Commas are more common to separate dirnames in a path on Macs. */
/* Commas are more common to separate dirnames in a path on Macs. */
 
 
#define DIRNAME_SEPARATOR ','
#define DIRNAME_SEPARATOR ','
 
 
/* This is a real crufty hack. */
/* This is a real crufty hack. */
 
 
#define HAVE_TERMIO
#define HAVE_TERMIO
 
 
/* Addons to the basic MPW-supported signal list. */
/* Addons to the basic MPW-supported signal list. */
 
 
#ifndef SIGQUIT
#ifndef SIGQUIT
#define SIGQUIT (1<<6)
#define SIGQUIT (1<<6)
#endif
#endif
#ifndef SIGHUP
#ifndef SIGHUP
#define SIGHUP (1<<7)
#define SIGHUP (1<<7)
#endif
#endif
 
 
/* If __STDC__ is on, then this definition will be missing. */
/* If __STDC__ is on, then this definition will be missing. */
 
 
#ifndef fileno
#ifndef fileno
#define fileno(p)       (p)->_file
#define fileno(p)       (p)->_file
#endif
#endif
 
 
#ifndef R_OK
#ifndef R_OK
#define R_OK 4
#define R_OK 4
#endif
#endif
 
 
extern int StandAlone;
extern int StandAlone;
 
 
extern int mac_app;
extern int mac_app;
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.