Skip to content

Commit 79233e3

Browse files
committed
goto-program interpreter: accurate help output
Previous help output was misleading and incomplete.
1 parent 46f1d63 commit 79233e3

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
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: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,18 @@ void interpretert::command()
140140
done=true;
141141
else if(ch=='h')
142142
{
143-
status()
144-
<< "Interpreter help\n"
145-
<< "h: display this menu\n"
146-
<< "j: output json trace\n"
147-
<< "m: output memory dump\n"
148-
<< "o: output goto trace\n"
149-
<< "q: quit\n"
150-
<< "r: run until completion\n"
151-
<< "s#: step a number of instructions\n"
152-
<< "sa: step across a function\n"
153-
<< "so: step out of a function\n"
154-
<< eom;
143+
status() << "Interpreter help\n"
144+
<< "h: display this menu\n"
145+
<< "j: output json trace\n"
146+
<< "m: output memory dump\n"
147+
<< "o: output goto trace\n"
148+
<< "q: quit\n"
149+
<< "r: run up to entry point\n"
150+
<< "s#: step a number of instructions\n"
151+
<< "sa: step across a function\n"
152+
<< "so: step out of a function\n"
153+
<< "se: step until end of program\n"
154+
<< eom;
155155
}
156156
else if(ch=='j')
157157
{

0 commit comments

Comments
 (0)