|
From: | Carlo de Falco |
Subject: | [Octave-bug-tracker] [bug #59156] __debug_octave__ does not detect correctly macos |
Date: | Tue, 22 Sep 2020 05:11:43 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:80.0) Gecko/20100101 Firefox/80.0 |
URL: <https://savannah.gnu.org/bugs/?59156> Summary: __debug_octave__ does not detect correctly macos Project: GNU Octave Submitted by: cdf Submitted on: Tue 22 Sep 2020 11:11:41 AM CEST Category: None Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Release: 6.0.90 Discussion Lock: Any Operating System: Mac OS _______________________________________________________ Details: __debug_octave__ uses the following to choose the command to execute depending on whether it is running on macos, windows or some other unix if (nargin == 0) status = system ("gdb --version"); if (status != 0) error ("unable to execute gdb"); endif if (isunix ()) command_string = "x-terminal-emulator -e gdb -p %d"; elseif (ispc ()) command_string = "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 endif unfortunately * gdb is not available by default on the mac so it should not be invoked unconditionally before the "if" block * "isunix" returns true on the mac so the "elseif (ismac ())" part of the code is never executed. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59156> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |