aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-09-26 05:22:09 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-09-26 05:22:09 +0300
commit196eeabf82e8f4653872afa2f49fa124295f15d5 (patch)
tree3787a11d798c81726a6cd669fbac7ac9fa1f8cbd /debug.c
parent491c127c5c78f0729f3e75bc0d07d49285a2041b (diff)
parent727c2b4c7011c252fd1973358629cccbfecfc25d (diff)
downloadegawk-196eeabf82e8f4653872afa2f49fa124295f15d5.tar.gz
egawk-196eeabf82e8f4653872afa2f49fa124295f15d5.tar.bz2
egawk-196eeabf82e8f4653872afa2f49fa124295f15d5.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index af5cfe82..7f58e927 100644
--- a/debug.c
+++ b/debug.c
@@ -2902,7 +2902,11 @@ restart(bool run)
close_all();
/* start a new process replacing the current process */
+#ifdef __MINGW32__
+ execvp(d_argv[0], (const char * const *)d_argv);
+#else
execvp(d_argv[0], d_argv);
+#endif
/* execvp failed !!! */
fprintf(out_fp, _("Failed to restart debugger"));