From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: lldb support Date: Thu, 10 Nov 2016 17:57:48 +0200 Message-ID: <83fumzfhtv.fsf@gnu.org> References: <20161107150552.20e98985@jabberwock.cb.piermont.com> <20161107220815.606cd583@jabberwock.cb.piermont.com> <6c239d49-a92c-1495-7121-4808295a4fc2@dancol.org> <20161109205724.02e086af@jabberwock.cb.piermont.com> <83h97gf19d.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1478793548 11568 195.159.176.226 (10 Nov 2016 15:59:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 Nov 2016 15:59:08 +0000 (UTC) Cc: dancol@dancol.org, emacs-devel@gnu.org, rms@gnu.org, perry@piermont.com To: Toon Claes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 10 16:59:03 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4rkH-0007NH-Fj for ged-emacs-devel@m.gmane.org; Thu, 10 Nov 2016 16:58:33 +0100 Original-Received: from localhost ([::1]:47353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4rkK-0002P2-K2 for ged-emacs-devel@m.gmane.org; Thu, 10 Nov 2016 10:58:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4rji-0002Om-5p for emacs-devel@gnu.org; Thu, 10 Nov 2016 10:57:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4rjf-0005Fv-3H for emacs-devel@gnu.org; Thu, 10 Nov 2016 10:57:58 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4rje-0005Fn-W8; Thu, 10 Nov 2016 10:57:55 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4735 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c4rjX-0003GN-LQ; Thu, 10 Nov 2016 10:57:48 -0500 In-reply-to: (message from Toon Claes on Thu, 10 Nov 2016 10:33:41 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:209327 Archived-At: > From: Toon Claes > Cc: "Perry E. Metzger" , dancol@dancol.org, rms@gnu.org, emacs-devel@gnu.org > Date: Thu, 10 Nov 2016 10:33:41 +0100 > > > Daniel said lldb supports the MI protocol. If that is true, lldb is > > already supported. Can someone try that and see if that works, and if > > not, tell why? > > > > Thanks. > > The tool `lldb-mi` is not installed on macOS by default (on 10.11 El Capitan > that is). But it can be installed with Homebrew. > > brew install llvm --with-lldb --with-clang > > But that is outside the question. > I tried to use it: > > M-x gud-gdb /usr/local/opt/llvm/bin/lldb-mi hello > > and when setting a breakpoint I got the following error: > > error: command 'breakpoint' did not recognize 'hello .swift:28' as valid (subcommand might be invalid). > ambiguous command 'break'. Possible completions: > breakpoint > > So, no, it is not working at the moment. Thanks. "M-x gud-gdb" doesn't use the MI protocol, so this is not the command that should be used to probe that. Instead, please invoke "M-x gdb RET". It will suggest a command line that assumes GDB; please change it as lldb-mi requires. If that starts okay and succeeds to load the debuggee, please see if the basic features work: setting breakpoints by clicking on the fringe, running the program from the tool-bar buttons and from the GUD buffer, displaying the various windows ("M-x gdb-many-windows"), etc. Thanks again.