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 08:06:50 +0300 Message-ID: References: <87556904-541c-6ef5-5a2b-9b7199ffb603@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1149221e45b7f00556734ae2" X-Trace: blaine.gmane.org 1502428068 1662 195.159.176.226 (11 Aug 2017 05:07:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Aug 2017 05:07:48 +0000 (UTC) Cc: Paul Eggert To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 11 07:07:44 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 1dg2Ag-00005D-LV for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 07:07:42 +0200 Original-Received: from localhost ([::1]:36547 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dg2Am-0000oU-UX for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 01:07:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dg2AX-0000n0-ND for emacs-devel@gnu.org; Fri, 11 Aug 2017 01:07:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dg2AW-0004D3-D5 for emacs-devel@gnu.org; Fri, 11 Aug 2017 01:07:33 -0400 Original-Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:33687) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dg2AW-0004CR-6Y for emacs-devel@gnu.org; Fri, 11 Aug 2017 01:07:32 -0400 Original-Received: by mail-wr0-x231.google.com with SMTP id v105so9707787wrb.0 for ; Thu, 10 Aug 2017 22:07:32 -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=WW9wwhx/cvNz4cjhLZxJHQdddK0VsVRNsVrM4PqQsB8=; b=ewtyzzvwakD4txOLC5ZfUPYC2JcZz+vgvVKHEjpfyWzj2i9KT/Zs72mTBfoAmPt5Bk vqjPhm9njV/dCV1kykV4tKW8FpkQyz1dikQDEQoqhs5ZePaV6q2vjNKK0Q3nLFRSIHol /cOtYWq8TU6TdNOJ+OYDRBRavQuDNrdRnohSTjn+M1eaFV4fxOSm0x3hqQ0/RiQXc9mh u5DJ6o2Kz1OGkpFeqrWB57J1r4vutwuxq/budOVOErXrgORC0YpSB043XbMbMP2TxExe 0APMueAVBeZUp6eWIaFS3dJCvJnW2ZBH2g5oL9hmUMwcr1PpGm2qJTDX2N7r5q1Iex0I l/rA== 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=WW9wwhx/cvNz4cjhLZxJHQdddK0VsVRNsVrM4PqQsB8=; b=U2ahYIO0DVpd7mKoXzsN5DPuIwIq0N/8Lb2zZmmxpqj4RaXRmgozcjGteVLp8LCakJ xm8uaw+4yqAhwFN4BaxouhwXREorjQUz1j9lUwAkfpFMC8k0R0KxaHR8U+2pMVrRRTrL CpP4t4zwPx2WjDU8bSUBxjVjDupWKH22szQeCZkKqf4J3ody3wXyBjEfUqMLQfTtBs68 XvOCNdUkXCnFbycai2js7ypA9p9GDGpHWRJJalQojwES2gCa5aZ7goTL+CqoZJbyddom xXcnHhO7tuUR4i6A33VQoUUDzFaIybdDyUKw6Ri5fonXdwlxp1YNw8ggj7cbZ0b/H/Hf w6fw== X-Gm-Message-State: AHYfb5gWrjkDfSrO1v4J/zFaDCnl4bi2MYgqva7QH10cqP27/KaVdlo7 F2W8ISiwJxIdHKBKP/SaxqZukEwKKP/s X-Received: by 10.223.133.201 with SMTP id 9mr11775900wru.177.1502428050862; Thu, 10 Aug 2017 22:07:30 -0700 (PDT) Original-Received: by 10.28.197.196 with HTTP; Thu, 10 Aug 2017 22:06:50 -0700 (PDT) In-Reply-To: <87556904-541c-6ef5-5a2b-9b7199ffb603@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::231 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:217411 Archived-At: --001a1149221e45b7f00556734ae2 Content-Type: text/plain; charset="UTF-8" Thanks, Paul. Do you use macOS? I read that Macs don't use gdb natively, but instead an alternative called LLVM. 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. On Fri, Aug 11, 2017 at 6:04 AM, Paul Eggert wrote: > Itai Berli wrote: > >> I'll appreciate it if someone can walk me through the steps needed to get >> up and running.... >> > > All the scripts finished successfully. In the end I was able to start the >> Emacs GUI from the command line by running >> >> open nextstep/Emacs.app >>> >> > You've gotten up and running, so it sounds like all you need to do is to > learn how to debug. > > I normally use gdb under Emacs to debug Emacs. To do that, I run Emacs in > the source directory, type the command "M-x gud-gdb RET bootstrap-emacs > RET" to get GDB running on a subsidiary instance of Emacs, type the GDB > command "b Fexpand_file_name" to plant a breakpoint in (say) > Fexpand_file_name, and then type the GDB command "r" to run the Emacs being > debugged. > --001a1149221e45b7f00556734ae2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, Paul. Do you use macOS? I read that Macs don't= use gdb natively, but instead an alternative called=C2=A0LLVM. 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.

On Fri, Aug 11, 2017 at 6:04 AM, Paul Eggert <eggert@cs.= ucla.edu> wrote:
Itai Ber= li wrote:
I'll appreciate it if someone can walk me through the steps needed to g= et
up and running....

All the scripts finished successfully. In the end I was able to start the Emacs GUI from the command line by running

open nextstep/Emacs.app

You've gotten up and running, so it sounds like all you need to do is t= o learn how to debug.

I normally use gdb under Emacs to debug Emacs. To do that, I run Emacs in t= he source directory, type the command "M-x gud-gdb RET bootstrap-emacs= RET" to get GDB running on a subsidiary instance of Emacs, type the G= DB command "b Fexpand_file_name" to plant a breakpoint in (say) F= expand_file_name, and then type the GDB command "r" to run the Em= acs being debugged.

--001a1149221e45b7f00556734ae2--