added a PFLUSH prior to zero byte in processing BPT op,
authorMark Linton <linton@ucbvax.Berkeley.EDU>
Wed, 17 Feb 1982 15:56:08 +0000 (07:56 -0800)
committerMark Linton <linton@ucbvax.Berkeley.EDU>
Wed, 17 Feb 1982 15:56:08 +0000 (07:56 -0800)
this way all output will be out whenever the debugger is entered.

SCCS-vsn: usr.bin/pascal/px/interp.c 1.21

usr/src/usr.bin/pascal/px/interp.c

index 204b4d8..6ff47d9 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright (c) 1979 Regents of the University of California */
 
 /* Copyright (c) 1979 Regents of the University of California */
 
-static char sccsid[] = "@(#)interp.c 1.20 %G%";
+static char sccsid[] = "@(#)interp.c 1.21 %G%";
 
 #include <math.h>
 #include "whoami.h"
 
 #include <math.h>
 #include "whoami.h"
@@ -171,6 +171,7 @@ interpreter(base)
 #              endif PROFILE
                switch (*pc.ucp++) {
                case O_BPT:                     /* breakpoint trap */
 #              endif PROFILE
                switch (*pc.ucp++) {
                case O_BPT:                     /* breakpoint trap */
+                       PFLUSH();
                        asm(".byte 0");
                        pc.ucp--;
                        continue;
                        asm(".byte 0");
                        pc.ucp--;
                        continue;