changeset 28770:61788482bcb7 stable

__debug_octave__.m: Check "ismac" before checking "isunix" (bug #59156).
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 22 Sep 2020 19:25:26 +0200
parents ecb8ffc51cfa
children 671fd568b130 20b4bd415083
files scripts/testfun/__debug_octave__.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/testfun/__debug_octave__.m	Mon Sep 21 15:19:09 2020 +0200
+++ b/scripts/testfun/__debug_octave__.m	Tue Sep 22 19:25:26 2020 +0200
@@ -54,12 +54,12 @@
     if (status != 0)
       error ("unable to execute gdb");
     endif
-    if (isunix ())
+    if (ismac ())
+      command_string = "osascript -e 'tell application \"Terminal\" to do script \"lldb -p %d\"'";
+    elseif (isunix ())
       command_string = "x-terminal-emulator -e gdb -p %d";
     elseif (ispc ())
       command_string = "cmd /c start gdb -p %d";
-    elseif (ismac ())
-      command_string = "osascript -e 'tell application \"Terminal\" to do script \"lldb -p %d\"'";
     else
       error ("unknown system -- unable to determine how to start debugger");
     endif