aboutsummaryrefslogtreecommitdiff
path: root/gdb/mac-xdep.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-03-17 23:21:12 +0000
committerStan Shebs <shebs@codesourcery.com>1995-03-17 23:21:12 +0000
commite70a10c35a577953dc0bda1154301bf57bfe5c58 (patch)
tree449edb2afb5e308feff0a7362f9f31d8ea6995b6 /gdb/mac-xdep.c
parentbff1e14da7966ebd82ad5b8b54fcdd233fda2b7c (diff)
downloadfsf-binutils-gdb-e70a10c35a577953dc0bda1154301bf57bfe5c58.zip
fsf-binutils-gdb-e70a10c35a577953dc0bda1154301bf57bfe5c58.tar.gz
fsf-binutils-gdb-e70a10c35a577953dc0bda1154301bf57bfe5c58.tar.bz2
* 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.
Diffstat (limited to 'gdb/mac-xdep.c')
-rw-r--r--gdb/mac-xdep.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/gdb/mac-xdep.c b/gdb/mac-xdep.c
index 5921906..6eaa6d0 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;