Mercurial > octave
changeset 28783:5cfc3e1b7ff4
maint: merge stable to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 23 Sep 2020 08:49:31 +0200 |
parents | 39997caa42f6 (current diff) 0ee399c4659c (diff) |
children | 02c2d6500c1f |
files | |
diffstat | 1 files changed, 15 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/testfun/__debug_octave__.m Tue Sep 22 20:00:35 2020 -0700 +++ b/scripts/testfun/__debug_octave__.m Wed Sep 23 08:49:31 2020 +0200 @@ -50,16 +50,27 @@ endif if (nargin == 0) - status = system ("gdb --version"); - if (status != 0) - error ("unable to execute gdb"); - endif if (ismac ()) + status = system ("lldb --version"); + if (status != 0) + error ("unable to execute lldb"); + endif command_string = "osascript -e 'tell application \"Terminal\" to do script \"lldb -p %d\"'"; + elseif (isunix ()) + status = system ("gdb --version"); + if (status != 0) + error ("unable to execute gdb"); + endif command_string = "x-terminal-emulator -e gdb -p %d"; + elseif (ispc ()) + status = system ("gdb --version"); + if (status != 0) + error ("unable to execute gdb"); + endif command_string = "cmd /c start gdb -p %d"; + else error ("unknown system -- unable to determine how to start debugger"); endif