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 17:42:25 +0300 Message-ID: References: <87556904-541c-6ef5-5a2b-9b7199ffb603@cs.ucla.edu> <7b152bb1-5768-633c-8b7a-172cc6227a26@cs.ucla.edu> <83valuqvmw.fsf@gnu.org> <83poc2qjc3.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045f4d1ac2fec005567b5400" X-Trace: blaine.gmane.org 1502463507 30735 195.159.176.226 (11 Aug 2017 14:58:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Aug 2017 14:58:27 +0000 (UTC) Cc: Emacs developers , Tino Calancha To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 11 16:58:23 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 1dgBOE-0007Ul-Gz for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 16:58:18 +0200 Original-Received: from localhost ([::1]:47008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgBOJ-0005up-Bk for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 10:58:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgB9i-0000sE-HW for emacs-devel@gnu.org; Fri, 11 Aug 2017 10:43:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgB9e-0002Zv-Hu for emacs-devel@gnu.org; Fri, 11 Aug 2017 10:43:18 -0400 Original-Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]:38191) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgB9X-0002YH-SG; Fri, 11 Aug 2017 10:43:08 -0400 Original-Received: by mail-wr0-x22e.google.com with SMTP id f21so14086724wrf.5; Fri, 11 Aug 2017 07:43:07 -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=Qg2HTpmY23/kVt7oT1/la0ynLCkpEqMXTU4fjQo1ZZs=; b=o+hQfPZ0uurJlTrHVg3AJrPaJGUpNydjMLuU6o8Jyvl55J3S4Gdr1L9vzg2XDnS2Zv zS3mpC3fEsuA6TAy1w2flZd91dOjJ/VkuZl9ivCeP5nZqTMSfF3lvPFSIcnlIAmlhWt9 Eno7HqvNiOTt3j0s2tmmUZOeGpwnZXX1B5zoYLKyKLDZxzgwinkl0g03ulaaP0o8aXgI Ce/yc/ZouohOsDOhhFLYyJtdrkm7/er9+F9vlSiLFzH0ZfBed/LJD96kO2H5Kn3cW4bO y/NjfyXzDpslwbUkEVF3e12R4j7L4A4tfs4IxgP3osqS+kK5BMltrC2RI3gzxuvAoMfa QNFg== 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=Qg2HTpmY23/kVt7oT1/la0ynLCkpEqMXTU4fjQo1ZZs=; b=KcO24Ihte8ohqsn+fKSQfzPdl9g+qhMoNJJhayq/4fol6I9U67vp/Hj+jvGpiUqgjJ sJ2FFxnEWyOavq38twLIiBK3BLjBWA5YUTHBcKe6c6juoUsK9QpXbQJ+4WLKykcPuOpB 23dkyvI+yN7v+jxZp3DMU5nS1jGDsdEALTYkbDOwZH/Di42OitTMHDX0a82dTN8UcEp0 RvH+jd6QsMxoaw73yDHGj+/Bd+XjYsFUQ9HCAkgGlKXSdeH/zFO/UZysxIj4U6UUdY35 D7IAjP7c13NdZWcUVk6WN3n3v4zjmPEt21vaoyAhxubxsyWy8XtUNO50RligK35J9ZqR cIeQ== X-Gm-Message-State: AHYfb5gaSNyPZLbPrUo3Id5P+RmayquFks66hjM9ZIvTrD8t2JVuwriq NVaAKz11rlIWoOljI+ClsZWcTXV1WpGC X-Received: by 10.223.153.234 with SMTP id y97mr10450877wrb.41.1502462586583; Fri, 11 Aug 2017 07:43:06 -0700 (PDT) Original-Received: by 10.28.197.196 with HTTP; Fri, 11 Aug 2017 07:42:25 -0700 (PDT) In-Reply-To: <83poc2qjc3.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22e 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:217438 Archived-At: --f403045f4d1ac2fec005567b5400 Content-Type: text/plain; charset="UTF-8" I have GDB 8.0, so it should work well, right? It appears, though, that there are fewer buttons in the debug toolbar when the debugger is started with gdb than when it is started with gud-gdb. Eli, which function is the entry point for the bidi module? Where should I set a breakpoint for starters? On Fri, Aug 11, 2017 at 5:18 PM, Eli Zaretskii wrote: > > From: Itai Berli > > Date: Fri, 11 Aug 2017 16:17:12 +0300 > > Cc: Emacs developers > > > > And what is the difference between gdb and gud-gdb? > > They invoke 2 different interfaces between Emacs and GDB. Depending > on what version of GDB you have there, "M-x gdb" might not be the best > choice, because it needs GDB 7.0 or later. > > There's also this comment in gdb-mi.el, which is what "M-x gdb" uses: > > ;;; macOS: > > ;; GDB in Emacs on macOS works best with FSF GDB as Apple have made > ;; some changes to the version that they include as part of macOS. > ;; This requires GDB version 7.0 or later as earlier versions do not > ;; compile on macOS. > --f403045f4d1ac2fec005567b5400 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have GDB 8.0, so it should work well, right? It appears,= though, that there are fewer buttons in the debug toolbar when the debugge= r is started with gdb than when it is started with gud-gdb.

<= div>Eli, which function is the entry point for the bidi module? Where shoul= d I set a breakpoint for starters?
On Fri, Aug 11, 2017 at 5:18 PM, Eli Zaretskii= <el= iz@gnu.org> wrote:
> Fro= m: Itai Berli <itai.berli@gmail.= com>
> Date: Fri, 11 Aug 2017 16:17:12 +0300
> Cc: Emacs developers <emacs-= devel@gnu.org>
>
> And what is the difference between gdb and gud-gdb?
They invoke 2 different interfaces between Emacs and GDB.=C2=A0 Depe= nding
on what version of GDB you have there, "M-x gdb" might not be the= best
choice, because it needs GDB 7.0 or later.

There's also this comment in gdb-mi.el, which is what "M-x gdb&quo= t; uses:

=C2=A0 ;;; macOS:

=C2=A0 ;; GDB in Emacs on macOS works best with FSF GDB as Apple have made<= br> =C2=A0 ;; some changes to the version that they include as part of macOS. =C2=A0 ;; This requires GDB version 7.0 or later as earlier versions do not=
=C2=A0 ;; compile on macOS.

--f403045f4d1ac2fec005567b5400--