changeset 28603:701063f476ee

maint: merge stable to default.
author Rik <rik@octave.org>
date Wed, 29 Jul 2020 13:05:22 -0700
parents 41ded587493a (current diff) 79558e694c6c (diff)
children 879eaba1f1db
files
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/testfun/__debug_octave__.m	Wed Jul 29 11:43:16 2020 -0400
+++ b/scripts/testfun/__debug_octave__.m	Wed Jul 29 13:05:22 2020 -0700
@@ -48,14 +48,12 @@
   endif
 
   if (nargin == 0)
-    [status, ~] = system ("gdb --version");
+    status = system ("gdb --version");
     if (status != 0)
       error ("unable to execute gdb");
     endif
     if (isunix ())
-      ## FIXME: is there a portable way to run a command in a new window?
-      ## Obviously, gnome-terminal is not always available.
-      command_string = "gnome-terminal -- gdb -p %d";
+      command_string = "x-terminal-emulator -e gdb -p %d";
     elseif (ispc ())
       command_string = "start gdb -p %d";
     elseif (ismac ())
@@ -65,7 +63,7 @@
     endif
   endif
 
-  system (sprintf (command_string, getpid ()));
+  system (sprintf (command_string, getpid ()), false, "async");
 
 endfunction