# HG changeset patch # User Markus Mützel # Date 1600795526 -7200 # Node ID 61788482bcb7bdd379e4a74080b461c92d8d5ae9 # Parent ecb8ffc51cfa3dfe2e38a4b9feb734c6d9a40d9a __debug_octave__.m: Check "ismac" before checking "isunix" (bug #59156). diff -r ecb8ffc51cfa -r 61788482bcb7 scripts/testfun/__debug_octave__.m --- 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