]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/xm-mpw.h
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gdb / config / xm-mpw.h
CommitLineData
e33bf0ab
SS
1/* Macro definitions for running GDB on Apple Macintoshes.
2 Copyright (C) 1994, 1995 Free Software Foundation, Inc.
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
20#include "mpw.h"
21
22#include "fopen-bin.h"
23
24#include "spin.h"
25
26#define CANT_FORK
27
28/* Map these standard functions to versions that can do I/O in a console
29 window. */
30
31#define printf hacked_printf
32#define fprintf hacked_fprintf
33#define vprintf hacked_vfprintf
34#define fputs hacked_fputs
35#define fputc hacked_fputc
36#undef putc
37#define putc hacked_putc
38#define fflush hacked_fflush
39
40#define fgetc hacked_fgetc
41
42#define POSIX_UTIME
43
44/* No declaration of strdup in MPW's string.h, oddly enough. */
45
46char *strdup (char *s1);
47
48/* '.' indicates drivers on the Mac, so we need a different filename. */
49
50#define GDBINIT_FILENAME "_gdbinit"
51
52/* Commas are more common to separate dirnames in a path on Macs. */
53
54#define DIRNAME_SEPARATOR ','
55
56/* This is a real crufty hack. */
57
58#define HAVE_TERMIO
59
60/* Addons to the basic MPW-supported signal list. */
61
62#ifndef SIGQUIT
63#define SIGQUIT (1<<6)
64#endif
65#ifndef SIGHUP
66#define SIGHUP (1<<7)
67#endif
68
69/* If __STDC__ is on, then this definition will be missing. */
70
71#ifndef fileno
72#define fileno(p) (p)->_file
73#endif
74
75#ifndef R_OK
76#define R_OK 4
77#endif
78
79extern int StandAlone;
80
81extern int mac_app;