added a flag for forcing the current location to be displayed
authorMark Linton <linton@ucbvax.Berkeley.EDU>
Wed, 17 Aug 1983 20:27:50 +0000 (12:27 -0800)
committerMark Linton <linton@ucbvax.Berkeley.EDU>
Wed, 17 Aug 1983 20:27:50 +0000 (12:27 -0800)
as an instruction, fixes problem with "stepi" on a program with source
line information

SCCS-vsn: old/dbx/eval.c 1.10

usr/src/old/dbx/eval.c

index 067d88a..6dea109 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright (c) 1982 Regents of the University of California */
 
 /* Copyright (c) 1982 Regents of the University of California */
 
-static char sccsid[] = "@(#)eval.c 1.9 %G%";
+static char sccsid[] = "@(#)eval.c 1.10 %G%";
 
 /*
  * Tree evaluation.
 
 /*
  * Tree evaluation.
@@ -44,6 +44,7 @@ typedef Char Stack;
 
 public Stack stack[STACKSIZE];
 public Stack *sp = &stack[0];
 
 public Stack stack[STACKSIZE];
 public Stack *sp = &stack[0];
+public Boolean useInstLoc = false;
 
 #define chksp() \
 { \
 
 #define chksp() \
 { \
@@ -405,6 +406,7 @@ register Node p;
                stepc();
            }
            inst_tracing = b;
                stepc();
            }
            inst_tracing = b;
+           useInstLoc = (Boolean) (not p->value.step.source);
            printnews();
            break;
 
            printnews();
            break;