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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [config/] [xm-mpw.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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