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: Help getting started debugging Emacs on macOS Sierra Date: Fri, 11 Aug 2017 02:25:17 +0300 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1149221ed30a2805566e8451" X-Trace: blaine.gmane.org 1502407605 30444 195.159.176.226 (10 Aug 2017 23:26:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 Aug 2017 23:26:45 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 11 01:26:40 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 1dfwqd-0007Ux-3u for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 01:26:39 +0200 Original-Received: from localhost ([::1]:57886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfwqh-0006Ex-Lw for ged-emacs-devel@m.gmane.org; Thu, 10 Aug 2017 19:26:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfwq2-0006Ej-Up for emacs-devel@gnu.org; Thu, 10 Aug 2017 19:26:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfwq1-00056q-LZ for emacs-devel@gnu.org; Thu, 10 Aug 2017 19:26:02 -0400 Original-Received: from mail-wr0-x233.google.com ([2a00:1450:400c:c0c::233]:35938) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dfwq1-00055U-Dv for emacs-devel@gnu.org; Thu, 10 Aug 2017 19:26:01 -0400 Original-Received: by mail-wr0-x233.google.com with SMTP id y43so8036420wrd.3 for ; Thu, 10 Aug 2017 16:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=aJIwmbij5V/sxyRkAp6079NXOSpOsxtFrv+CBrjKUDE=; b=qDXvFiU9FaknOwxFrjd1xjFp1zxi/BmVkwUaCFVtJddNF/2IwCWt9TZa1X+LHEfAUd TKsS5a6OMUjHn5xEMEixZqscIRG6DIaiqbib7Gks/lh/VxvQq69rsxwFIPytxYSbyd3n OG2g/PE4TYaR3eMIwvoyvDXxdTU1hObLZds3ESC3F8o2xItg08f4pixCpOI2raOYcdyP W+AKxpMaN7N0YrQfH/1dKDOAZSzVTmwQO7nNki9d0hIFDsq9KRlDFMIIXeEGo0he88RK Kb8efPd/Asz2ZU1fV6O3VbYohQaXyftRpmmfz76VuuZ3f9TaNQOPUZKZB6tpiW7uECVL 122A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=aJIwmbij5V/sxyRkAp6079NXOSpOsxtFrv+CBrjKUDE=; b=TcVVQUBPQ8ulBVhb2cNT5+OpMgqzaocqY9ByIveORD6RgLgx/txOpQLcoehd7nDbPn 9+0ePYXWOpmCJc9E9ONk6jI4YwFSDo1w6c6UOM48s8v/ZoeOM8xDJ+iaAjzVVNvLx6I1 ESsyqB63p7VTwjYtkMbHK+TTC9WKDP+8M8rjoxZfVW6GYR3oO1VBhBwjNiYZT5ZIkM1N 5GRTZk04SA6uW4qfnvswSr8FwpJp2lfJhRGLTUEGw1kdu81fCYx74mJRoDNRQKJrPJcr ycc1bK6bGBYXplCV6hURX9OUIb5K3QQpMXCOOKqMvZhjEyHAkWJlNmynRTayuqnx88C5 u7QA== X-Gm-Message-State: AHYfb5hKY/KSJJ32dvE7eMWzrnVpGDnp4v2Nwzec+s1dxBgawnXu9jBf hxzD0hgHnrdWVe5k9y/QgI6mcrsfy2kV9LY= X-Received: by 10.223.133.201 with SMTP id 9mr11237913wru.177.1502407558366; Thu, 10 Aug 2017 16:25:58 -0700 (PDT) Original-Received: by 10.28.197.196 with HTTP; Thu, 10 Aug 2017 16:25:17 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::233 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:217405 Archived-At: --001a1149221ed30a2805566e8451 Content-Type: text/plain; charset="UTF-8" Hello. I'm new to Emacs development. I'm interesting in exploring the Emacs bidi feature, which is coded in the files bidi.c and xdisp.c. To get my feet wet, I'd like to set a breakpoint in the beginning of one of the functions in one of these files, I don't care which one, and step through the function in a debugger. Not only am I new to Emacs development, I'm also new to developing C programs. Ideally, I'd like to do this in the Eclipse IDE for C/C++ Developers (Oxygen Release 4.7.0). However, I'm also willing to try another debugger, such as a command-line one, if it's easier to get started. My operating system is macOS Sierra Version 10.12.6 (the latest version). My LLVM version is 8.1.0 (clang-802.0.42). I'll appreciate it if someone can walk me through the steps needed to get up and running. I have downloaded Emacs from git by running > git clone git://git.savannah.gnu.org/emacs.git I then compiled and installed it by running the following sequence of scripts. > ./autogen.sh > ./autogen.sh git > ./configure > make > make install 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 The Emacs version that displayed was GNU Emacs 26.0.50 (build 1, x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G29)). --001a1149221ed30a2805566e8451 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello.

I'm new to Emacs development= .

I'm interesting in exploring the Emacs bidi = feature, which is coded in the files bidi.c and xdisp.c.

To get my feet wet, I'd like to set a breakpoint in the beginnin= g of one of the functions in one of these files, I don't care which one= , and step through the function in a debugger.

Not= only am I new to Emacs development, I'm also new to developing C progr= ams. Ideally, I'd like to do this in the Eclipse IDE for C/C++ Develope= rs (Oxygen Release 4.7.0). However, I'm also willing to try another deb= ugger, such as a command-line one, if it's easier to get started.
=

My operating system is macOS Sierra Version 10.12.6 (th= e latest version). My LLVM version is 8.1.0 (clang-802.0.42).
I'll appreciate it if someone can walk me through the steps= needed to get up and running.

I have downloaded E= macs from git by running


I then compiled and installed it by runn= ing the following sequence of scripts.

> ./auto= gen.sh
> ./autogen.sh git
> ./configure
> make
> make install

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

> open nextstep/Emacs.app

The Emacs version that displayed was=C2=A0GNU Emacs 26.0.50 (bui= ld 1, x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 1= 6G29)).

--001a1149221ed30a2805566e8451--