# HG changeset patch # User Markus Mützel # Date 1600795569 -7200 # Node ID 671fd568b1309746072f6634bbc4f1a9d28de6a8 # Parent 903fe321649b758f42245eed220877525d58b77b# Parent 61788482bcb7bdd379e4a74080b461c92d8d5ae9 maint: merge stable to default. diff -r 903fe321649b -r 671fd568b130 scripts/testfun/__debug_octave__.m --- a/scripts/testfun/__debug_octave__.m Tue Sep 22 15:59:00 2020 +0200 +++ b/scripts/testfun/__debug_octave__.m Tue Sep 22 19:26:09 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