changeset 28744:56b9a468145a stable

__debug_octave__.m: Change Windows command to work better (bug #59100). * __debug_octave__.m: Change Windows gdb command to begin with "cmd /c" so a new terminal window is started.
author Rik <rik@octave.org>
date Mon, 14 Sep 2020 13:36:36 -0700
parents 2cb815b72d2f
children b12ff2cea46a
files scripts/testfun/__debug_octave__.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/testfun/__debug_octave__.m	Mon Sep 14 21:36:31 2020 +0200
+++ b/scripts/testfun/__debug_octave__.m	Mon Sep 14 13:36:36 2020 -0700
@@ -38,7 +38,7 @@
 ## @example
 ## @group
 ## __debug_octave__ ()
-## __debug_octave__ ("start gdb -p %d")
+## __debug_octave__ ("cmd /c start gdb -p %d")
 ## @end group
 ## @end example
 ## @end deftypefn
@@ -57,7 +57,7 @@
     if (isunix ())
       command_string = "x-terminal-emulator -e gdb -p %d";
     elseif (ispc ())
-      command_string = "start gdb -p %d";
+      command_string = "cmd /c start gdb -p %d";
     elseif (ismac ())
       command_string = "osascript -e 'tell application \"Terminal\" to do script \"lldb -p %d\"'";
     else