diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-05-05 10:24:16 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-05-05 10:24:16 +0300 |
commit | 823aca91eec1b7525b74b9cd66ae286c37f2da75 (patch) | |
tree | 399f2194488ec396c33fe4647a71e351ac9b9067 | |
parent | f4cc4f9178ac30cdee6b2fca38b42985af42e097 (diff) | |
download | egawk-823aca91eec1b7525b74b9cd66ae286c37f2da75.tar.gz egawk-823aca91eec1b7525b74b9cd66ae286c37f2da75.tar.bz2 egawk-823aca91eec1b7525b74b9cd66ae286c37f2da75.zip |
Fix debugger 'run' command to fully restart.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | debug.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2014-05-04 Arnold D. Robbins <arnold@skeeve.com> + + * debug.c (debug_prog): Change check for GAWK_RESTART so that it + actually works. Bug fix: run command in debugger would start + over again but not actually start running the program. + 2014-04-25 Andrew J. Schorr <aschorr@telemetry-investments.com> * io.c (two_way_open): In forked child, reset SIGPIPE to SIG_DFL. @@ -2801,7 +2801,7 @@ debug_prog(INSTRUCTION *pc) unserialize(OPTION); unsetenv("DGAWK_RESTART"); fprintf(out_fp, "Restarting ...\n"); - if (run[0] == 'T') + if (strcasecmp(run, "true") == 0) (void) do_run(NULL, 0); } else if (command_file != NULL) { |