vm: only show factorbug help the first time

db4
Joe Groff 2011-10-31 17:38:42 -07:00
parent 1a665f3eac
commit 34ea20beca
3 changed files with 6 additions and 1 deletions

View File

@ -396,7 +396,10 @@ void factor_vm::factorbug()
fep_p = true;
std::cout << "Starting low level debugger..." << std::endl;
factorbug_usage(false);
if (!fep_help_was_shown) {
factorbug_usage(false);
fep_help_was_shown = true;
}
bool seen_command = false;
for(;;)

View File

@ -18,6 +18,7 @@ factor_vm::factor_vm() :
current_gc(NULL),
gc_events(NULL),
fep_p(false),
fep_help_was_shown(false),
fep_disabled(false),
full_output(false),
last_nano_count(0),

View File

@ -111,6 +111,7 @@ struct factor_vm
/* Debugger */
bool fep_p;
bool fep_help_was_shown;
bool fep_disabled;
bool full_output;