Skip to content

Commit e17b695

Browse files
committed
goto-program interpreter: accurate help output
Previous help output was misleading and incomplete.
1 parent a8ea8ba commit e17b695

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

regression/goto-interpreter/help-output/test.desc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ h,q
88
^m: output memory dump$
99
^o: output goto trace$
1010
^q: quit$
11-
^r: run until completion$
11+
^r: run up to entry point$
1212
^s#: step a number of instructions$
1313
^sa: step across a function$
1414
^so: step out of a function$
15+
^se: step until end of program$
1516
^\d+- Program End\.$
1617
^EXIT=0$
1718
^SIGNAL=0$

src/goto-programs/interpreter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,11 @@ void interpretert::command()
147147
<< "m: output memory dump\n"
148148
<< "o: output goto trace\n"
149149
<< "q: quit\n"
150-
<< "r: run until completion\n"
150+
<< "r: run up to entry point\n"
151151
<< "s#: step a number of instructions\n"
152152
<< "sa: step across a function\n"
153153
<< "so: step out of a function\n"
154+
<< "se: step until end of program\n"
154155
<< eom;
155156
}
156157
else if(ch=='j')

0 commit comments

Comments
 (0)