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 19:07:31 +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> <83o9rmqh0j.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c0d106a11531f05567c8514" X-Trace: blaine.gmane.org 1502467781 3104 195.159.176.226 (11 Aug 2017 16:09:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Aug 2017 16:09:41 +0000 (UTC) Cc: Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 11 18:09:35 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 1dgCV6-0008RL-2r for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 18:09:28 +0200 Original-Received: from localhost ([::1]:52965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgCVA-0000Xq-Nm for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 12:09:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgCU0-0000Vz-R8 for emacs-devel@gnu.org; Fri, 11 Aug 2017 12:08:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgCTv-0000XI-MI for emacs-devel@gnu.org; Fri, 11 Aug 2017 12:08:20 -0400 Original-Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]:34817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgCTt-0000TN-BM; Fri, 11 Aug 2017 12:08:13 -0400 Original-Received: by mail-wr0-x230.google.com with SMTP id k71so15010971wrc.2; Fri, 11 Aug 2017 09:08:13 -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=hN9yLlchPQutPrgi50rNdOF3F7vQtsDKChMHgpN9zB8=; b=l87NtAeU4v4MNqHCYStqCE5E5EQ5M7/3BRRgnR199iwNEhw4cRcAm+BHrtjnafx7fs vORCZ15/ZpTg8IK/DvsTDsvsLTtjnVzxzIBaNNHbBBVID3jlLIvRhAdbp0MADDZU6VC3 4xXK2CElnoYaNjZWT5d0Yz1uq4MaN3wB0pPUCtmNRz3b5Aef9avxyZReRWfABTIhnIFU XtBRhAJcvqBr4mwzvFzPfISJ8ENe7JDIHgzrV6zAykBr1s0CHeN/HdZFH5IlDXWd1JJm URzFhB01JBrAgMQ1b9Q2QNQWJOdg4+3rgAmZZAXh2z2NrquVNX68Z9Z7rYADdI03gm7C dWew== 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=hN9yLlchPQutPrgi50rNdOF3F7vQtsDKChMHgpN9zB8=; b=T2C9ocqYAShsQtaMq+w834mPba/xFQmdsNG4DgjGQz/cfYTAnXlxZJannZ7ygBBpIT bUodgOkb+YSFab5pX5jtsS+0tIz72AjRhBGa613sYhT2d4ggCVWkS8yvdSLVWwrLRoA2 URLZsivwjBmQaGegy5LY6qTajJwLkMZCM6SEXGV57FVItBbIwoN5jGkhkOcnGQCrynVB +aK1l6/rNAq5+hZ8YinSkATRE+ec1AKBkDqoy+vzd1QM6be+j0KdQUNqlAO1UuQ2nEMI c73hTMT44wanzA6zPCuZ7fPl7Vhki4OGqWrnWDKWtjDgPc6lt8naZ9Wq1qUqZ9zniSZQ TAWA== X-Gm-Message-State: AHYfb5gk0QcZiebAYK2meqMoeZexawI1yLDyqYwLOK7Um10HVYIzC871 ZD7HprMc/BSmn/GZkD5v8FJP87xxBtWj X-Received: by 10.223.131.99 with SMTP id 90mr10458915wrd.155.1502467691990; Fri, 11 Aug 2017 09:08:11 -0700 (PDT) Original-Received: by 10.28.197.196 with HTTP; Fri, 11 Aug 2017 09:07:31 -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:217441 Archived-At: --94eb2c0d106a11531f05567c8514 Content-Type: text/plain; charset="UTF-8" It looks like after the main process starts spawning threads, it is impossible to set breakpoints anymore. On Fri, Aug 11, 2017 at 6:34 PM, Itai Berli wrote: > > Tell me what you want to do and with what text, and then I might be > able to help you do > that in a more useful way. > > I just want to get more familiar with the bidi algorithm and the way it is > implemented by Emacs. I'd like to try various small phrases, such as the > ones that can be found in this article: https://www.w3.org/In > ternational/articles/inline-bidi-markup/uba-basics > > On Fri, Aug 11, 2017 at 6:08 PM, Eli Zaretskii wrote: > >> > From: Itai Berli >> > Date: Fri, 11 Aug 2017 17:42:25 +0300 >> > Cc: Tino Calancha , Emacs developers < >> emacs-devel@gnu.org> >> > >> > 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. >> >> Try "M-x gdb-many-windows RET", maybe you will like the result. >> >> > Eli, which function is the entry point for the bidi module? Where >> should I set a breakpoint for starters? >> >> The entry point is bidi_get_next_char_visually. (See the beginning of >> bidi.c for this and other information.) >> >> However, setting a simple breakpoint there will cause that breakpoint >> be hit all the time, and will therefore be useless. Tell me what you >> want to do and with what text, and then I might be able to help you do >> that in a more useful way. >> >> > --94eb2c0d106a11531f05567c8514 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It looks like after the main process starts spawning threa= ds, it is impossible to set breakpoints anymore.

On Fri, Aug 11, 2017 at 6:34 PM, Itai = Berli <itai.berli@gmail.com> wrote:
> Tell me what you=C2=A0want to do and with what text, and then I might be able to help you do
that i= n a more useful way.

I just want= to get more familiar with the bidi algorithm and the way it is implemented= by Emacs. I'd like to try various small phrases, such as the ones that= can be found in this article:=C2=A0https://www.= w3.org/International/articles/inline-bidi-markup/uba-basics

On Fri, Aug 11, 2017 at 6:08 PM, Eli Zaretskii = <eliz@gnu.org><= /span> wrote:
> From: Itai Berli <<= a href=3D"mailto:itai.berli@gmail.com" target=3D"_blank">itai.berli@gmail.c= om>
> Date: Fri, 11 Aug 2017 17:42:25 +0300
> Cc: Tino Calancha <tino.calancha@gmail.com>, Emacs developers <emacs-devel@gnu.org&g= t;
>
> I have GDB 8.0, so it should work well, right? It appears, though, tha= t there are fewer buttons in the debug
> toolbar when the debugger is started with gdb than when it is started = with gud-gdb.

Try "M-x gdb-many-windows RET", maybe you will like the re= sult.

> Eli, which function is the entry point for the bidi module? Where shou= ld I set a breakpoint for starters?

The entry point is bidi_get_next_char_visually.=C2=A0 (See the begin= ning of
bidi.c for this and other information.)

However, setting a simple breakpoint there will cause that breakpoint
be hit all the time, and will therefore be useless.=C2=A0 Tell me what you<= br> want to do and with what text, and then I might be able to help you do
that in a more useful way.



--94eb2c0d106a11531f05567c8514--