aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-05-05 10:24:16 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-05-05 10:24:16 +0300
commit823aca91eec1b7525b74b9cd66ae286c37f2da75 (patch)
tree399f2194488ec396c33fe4647a71e351ac9b9067
parentf4cc4f9178ac30cdee6b2fca38b42985af42e097 (diff)
downloadegawk-823aca91eec1b7525b74b9cd66ae286c37f2da75.tar.gz
egawk-823aca91eec1b7525b74b9cd66ae286c37f2da75.tar.bz2
egawk-823aca91eec1b7525b74b9cd66ae286c37f2da75.zip
Fix debugger 'run' command to fully restart.
-rw-r--r--ChangeLog6
-rw-r--r--debug.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6185b1d8..f3772314 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/debug.c b/debug.c
index b55f3577..84e69d47 100644
--- a/debug.c
+++ b/debug.c
@@ -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) {