From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Itai Berli Newsgroups: gmane.emacs.devel Subject: Re: Help getting started debugging Emacs on macOS Sierra Date: Fri, 11 Aug 2017 12:27:01 +0300 Message-ID: References: <87556904-541c-6ef5-5a2b-9b7199ffb603@cs.ucla.edu> <7b152bb1-5768-633c-8b7a-172cc6227a26@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1b47b6cccb35055676ece7" X-Trace: blaine.gmane.org 1502443707 3027 195.159.176.226 (11 Aug 2017 09:28:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Aug 2017 09:28:27 +0000 (UTC) Cc: Emacs developers To: Paul Eggert , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 11 11:28:19 2017 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 1dg6Es-0000D9-La for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 11:28:18 +0200 Original-Received: from localhost ([::1]:51742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dg6Ey-0004YG-P2 for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 05:28:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dg6EM-0004Xo-QC for emacs-devel@gnu.org; Fri, 11 Aug 2017 05:27:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dg6EL-0002aL-Hn for emacs-devel@gnu.org; Fri, 11 Aug 2017 05:27:46 -0400 Original-Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:32778) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dg6EJ-0002YB-Id; Fri, 11 Aug 2017 05:27:43 -0400 Original-Received: by mail-wr0-x22f.google.com with SMTP id v105so11541249wrb.0; Fri, 11 Aug 2017 02:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=AEMreS9+PcEc1GnJMvCUeBEgYND3k8RXmtUMEYMulr4=; b=cbuLsFsZXElpGRG7TlFupyNcnh68lMjoWL1gPGpqDqakbDdneZ8guHHrwNyPb0zbww 5S1ZSzZFpTU5+2H5uiPOywqvt0+3JbkkV6Hf2rnWTFBO2nvx3O3fDmEICWDF+75Ok+ys xTp2LaPJ3UOJagSo5QGiEhtonEhLGmS8i8Jf0AFivddvhZWvv5LR7NweFLQvgbQzRU6K FpQMmnkkRYAVMVbWwW0sBoY35hLrGqI3INFhcoC2k7QQOfmFkJcPhsuFLLa+lrETo1bD MyDmxFkTCsPk8M1ufEs7/MFol423/5pXeWdYVLndGQNnqB0KYD1e73mpnzy8yYqPjEcp KPUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=AEMreS9+PcEc1GnJMvCUeBEgYND3k8RXmtUMEYMulr4=; b=aMHeAWnjXVtsmuajKlO/yVRl0rJPkdk6TkK/GCu1mNWh7txAqksl82SuXapq63huX9 ksv1dU/8IXaBz4WDuyonxLnXySyYF7hjy/XIJw0f4h2Iti3IVFG9JkUD725qOuZM4Phv 0rpxks9Hyirg0/8lJEyuH/8pWfUJGpf8g+9BLl/SarzajQC2U0Uj4LsQp7Rtw4Z9OzHM ynbKRpXxM664SH8ilvhRDRdudj5vXVTiYPpJQaZVe3I8mUrmiqeS0CHl++EtRr98eHT8 nyVsBDolutesntxr0D5OEB898jwr4rlciPQDigcL5p2t3I3AbH4OJFVHDyXpOO+ffOlg FCfw== X-Gm-Message-State: AHYfb5ji+V7XJiqupUqUNvB9XVaKPNc2PSolQmKBFQvFaTgQvYXtdxLb gBRHsG1ENmF4Y4kS5HdV+vdQoLBJhEX9AlY= X-Received: by 10.223.170.140 with SMTP id h12mr10119070wrc.79.1502443662525; Fri, 11 Aug 2017 02:27:42 -0700 (PDT) Original-Received: by 10.28.197.196 with HTTP; Fri, 11 Aug 2017 02:27:01 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22f 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:217418 Archived-At: --94eb2c1b47b6cccb35055676ece7 Content-Type: text/plain; charset="UTF-8" Paul Eggert wrote: > type the GDB command "b Fexpand_file_name" to plant a breakpoint in (say) Fexpand_file_name What do you mean by 'Fexpand_file_name'? The name of a file, or the name of a function? Could you give me a concrete example? Suppose, for instance, I wish to place a breakpoint at the start of the 'main; function. How can I do so? On Fri, Aug 11, 2017 at 11:57 AM, Itai Berli wrote: > OK. So I've installed gdb, and rebuilt Emacs as Eli suggested. I have then > imported the project to Eclipse IDE for C/C++ Developers (Oxygen Release > 4.7.0). I have no trouble running the GUI from Eclipse. However, when when > I try to debug it, I get the following error message: > > --- > 'Launching emacs-26.0.50.1' has encountered a problem. > Error in final launch sequence > Failed to execute MI command: > -exec-run > Error message from debugger back end: > During startup program terminated with signal ?, Unknown signal. > During startup program terminated with signal ?, Unknown signal. > --- > > On Fri, Aug 11, 2017 at 11:47 AM, Paul Eggert wrote: > >> Itai Berli wrote: >> >>> At any rate, gdb is not installed >>> on my system. I can download and install it, but I'm a little hesitant, >>> as >>> I'm afraid it might clash with LLVM. >>> >> >> It won't break anything; although GDB consumes LLVM's output, it does not >> affect what LLVM does. >> >> You don't need to rerun autogen.sh merely because you re-ran 'configure'. >> > > --94eb2c1b47b6cccb35055676ece7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Paul Eggert wrote:

> type the GDB comm= and "b Fexpand_file_name" to plant a breakpoint in (say) Fexpand_= file_name

=
What do you mean by 'Fexpand_file_name'? The name of a fil= e, or the name of a function? Could you give me a concrete example? Suppose= , for instance, I wish to place a breakpoint at the start of the 'main;= function. How can I do so?
On Fri, Aug 11, 2017 at 11:57 AM, Itai Berli <= span dir=3D"ltr"><itai.berli@gmail.com> wrote:
OK. So I've installed gdb, and rebuilt Emacs as = Eli suggested. I have then imported the project to Eclipse IDE for C/C++=C2= =A0Developers (Oxygen Release 4.7.0). I ha= ve no trouble running the GUI from Eclipse. However, when=C2=A0when I try t= o debug it, I get the following error message:

---<= /span>
'Launching emacs-26.0= .50.1' has encountered a problem.
Error in final launch sequence
Failed to execute MI command:
-exec-run
Error message from debugger back end:
During startup program terminated with signal ?, Unkn= own signal.
During startu= p program terminated with signal ?, Unknown signal.
---
=

On Fri, Aug 11, 2017 at 11:47 AM, Paul Eggert <eggert@cs.ucla.edu>= ; wrote:
Itai Berli wrote:
At any rate, gdb is not installed
on my system. I can download and install it, but I'm a little hesitant,= as
I'm afraid it might clash with LLVM.

It won't break anything; although GDB consumes LLVM's output, it do= es not affect what LLVM does.

You don't need to rerun autogen.sh merely because you re-ran 'confi= gure'.


--94eb2c1b47b6cccb35055676ece7--