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 15:40:42 +0300 Message-ID: References: <87556904-541c-6ef5-5a2b-9b7199ffb603@cs.ucla.edu> <7b152bb1-5768-633c-8b7a-172cc6227a26@cs.ucla.edu> <83valuqvmw.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1b47b66c967d055679a184" X-Trace: blaine.gmane.org 1502455302 25665 195.159.176.226 (11 Aug 2017 12:41:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Aug 2017 12:41:42 +0000 (UTC) Cc: Emacs developers To: Tino Calancha Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 11 14:41:38 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 1dg9Fr-00062s-2u for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 14:41:31 +0200 Original-Received: from localhost ([::1]:36755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dg9Fx-0006SG-Ij for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 08:41:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dg9Fp-0006Rk-Nn for emacs-devel@gnu.org; Fri, 11 Aug 2017 08:41:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dg9Fk-0000DX-3d for emacs-devel@gnu.org; Fri, 11 Aug 2017 08:41:29 -0400 Original-Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]:36029) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dg9Fj-0000D3-Tp for emacs-devel@gnu.org; Fri, 11 Aug 2017 08:41:24 -0400 Original-Received: by mail-wr0-x230.google.com with SMTP id y43so13035243wrd.3 for ; Fri, 11 Aug 2017 05:41:23 -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=C1evqk+JCMaS/nqBzloV2LqyF525b0xX2QfLKLTyBnc=; b=Quz/KynRxA89EuRokVmdfMQ/ol9s8AFbpdxehDUYO87e4I7s9+Vf8YtxeSCz04FnEw PyGCO//3H+28U/OpsTG6z9iqtP1FJ4P7M709VWp12g7e0x9ktW4Q2uw0gbZoWqmO4Ml5 6htnjl0ko4lXd2CTQKB71WK+cenXg9m2iusvaHSWMEh0GNTBlvFomYODLCLovDaEQJ7K 7Wm0faUsbiTFvPhlB+C/F9tL8ZOiy1PiDmi3H5IkQzBxBSGAw5uo6d4qWE1LTj3b8far 4pziPSZqwKmX6Eastzv7gRvM3+xSnKXIpJT3Kx0bjHcxRCCijkZqWaSOhRAr++y0ASRZ t9Jw== 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=C1evqk+JCMaS/nqBzloV2LqyF525b0xX2QfLKLTyBnc=; b=J8c0nfceVdJePX40LgcviirB9MStf93B+VlUomjWnVjgzdFg548sBrF2PfRbhDvjLk qjE8vo2+W6Tg4xOKq4EKdyctOFtNklx25uY/KDZ7fSX8o7TC6lmtihOqQ7FZo0hWzGMQ Vqo+n5UMAHliIvr18I3K33OUgT+0sdBUPmMukUQZVsXZbOVyY2l4p8C0A4UGHtUVA+Rg Ft7PDZjdZ2VRWkFR3dt8eQ1Avx251epuWAc0hv/DPvyy7Y5Gs+8hQlZgVTcnsio3rSXI Ur1vDlFzZsr3FzJXkh/lYYBelWaTC6onDwJSV1lp77SPy/dGYVTcwxZpvvW0Q+BK1U/e cerQ== X-Gm-Message-State: AHYfb5hkSaqVIqJNQ2Iq1nLLFB1rpyFYHHIfo5G16aYg29kzGyvf9IR2 72PmAquiAPZFxT5jpsaZ0D+QGRuPmw== X-Received: by 10.223.170.140 with SMTP id h12mr10499525wrc.79.1502455282831; Fri, 11 Aug 2017 05:41:22 -0700 (PDT) Original-Received: by 10.28.197.196 with HTTP; Fri, 11 Aug 2017 05:40:42 -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::230 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:217429 Archived-At: --94eb2c1b47b66c967d055679a184 Content-Type: text/plain; charset="UTF-8" Thanks. What does the '-i=mi' mean? I don't see the '-i' option on the gdb man page. On Fri, Aug 11, 2017 at 3:33 PM, Tino Calancha wrote: > > > On Fri, 11 Aug 2017, Itai Berli wrote: > > Thanks, Tino. >> I've finally managed to get gdb to work by executing the following two >> instructions at the gdb command prompt: >> (gdb) cd ~/emacs >> (gdb) file src/bootstrap-emacs >> >> However, your suggestion to execute the following from the terminal, >> didn't work: >> >> > emacs ~/emacs/src >> > Oh, i think you mention you run Emacs with: > open nextstep/Emacs.app > > i don't have mac but i guess the following might work (*): > open -a nextstep/Emacs.app ~/emacs/src > > (*) https://www.emacswiki.org/emacs/EmacsForMacOS#toc17 > > In case it works, then call from Emacs the gdb front-end: > M-x gdb RET > ;; You must see something like: > gdb -i=mi bootstrap-emacs > ;; Just enter and gdb would have loaded the Emacs executable > --94eb2c1b47b66c967d055679a184 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks. What does the '-i=3Dmi' mean? I don't = see the '-i' option on the gdb man page.

On Fri, Aug 11, 2017 at 3:33 PM, Tino = Calancha <tino.calancha@gmail.com> wrote:


On Fri, 11 Aug 2017, Itai Berli wrote:

Thanks, Tino.
I've finally managed to get gdb to work by executing the following two = instructions at the gdb command prompt:
(gdb) cd ~/emacs
(gdb) file src/bootstrap-emacs

However, your suggestion to execute the following from the terminal, didn&#= 39;t work:

> emacs ~/emacs/src
Oh, i think you mention you run Emacs with:
open nextstep/Emacs.app

i don't have mac but i guess the following might work (*):
open -a nextstep/Emacs.app ~/emacs/src

(*) https://www.emacswiki.org/emacs/EmacsFor= MacOS#toc17

In case it works, then call from Emacs the gdb front-end:
M-x gdb RET
;; You must see something like:
gdb -i=3Dmi bootstrap-emacs
;; Just enter and gdb would have loaded the Emacs executable

--94eb2c1b47b66c967d055679a184--