From e70a10c35a577953dc0bda1154301bf57bfe5c58 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Fri, 17 Mar 1995 23:21:12 +0000 Subject: * mpw-config.in (i386-unknown-go32): Change from aout. (sh-hitachi-hms): New target. * mpw-make.in (BISON): Use byacc instead of bison. (VERSION): Bump to 4.14.1. (*-pinsn.*): Remove mentions everywhere. (all): Don't build MacGDB. (gdb, SiowGDB): Depend on Version.r. (Version.r): Generate from version info. * main.c (main): Pass program name to START_PROGRESS, END_PROGRESS. (main) [MPW]: Remove debugging hook. * mac-xdep.c (debug_openp): New flag. (mac_init): Set flag if env variable defined. * ser-mac.c (mac_open): Clarify error message. (mac_readchar): Call PROGRESS while looping. (mac_write): Call sleep instead of sec_sleep. (sec_sleep): Remove. * source.c (openp) [MPW]: Only print debugging info if debugging. * utils.c (query) [MPW]: Clarify that behavior is a bug. --- gdb/mac-xdep.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gdb/mac-xdep.c') diff --git a/gdb/mac-xdep.c b/gdb/mac-xdep.c index 5921906872..6eaa6d0a47 100644 --- a/gdb/mac-xdep.c +++ b/gdb/mac-xdep.c @@ -54,7 +54,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef MPW #define QD(whatever) (qd.##whatever) #define QDPat(whatever) (&(qd.##whatever)) -#endif +#endif /* MPW */ #ifdef THINK_C #define QD(whatever) (whatever) @@ -81,6 +81,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "mac-defs.h" +int debug_openp = 0; + /* This is true if we are running as a standalone application. */ int mac_app; @@ -123,6 +125,7 @@ mac_init () { SysEnvRec se; int eventloopdone = 0; + char *str; Boolean gotevent; Point mouse; EventRecord event; @@ -135,6 +138,13 @@ mac_init () mac_app = 0; + str = getenv("DEBUG_GDB"); + if (str != NULL && str[0] != '\0') + { + if (strcmp(str, "openp") == 0) + debug_openp = 1; + } + /* Don't do anything if we`re running under MPW. */ if (!StandAlone) return; -- cgit v1.2.1