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 12:59:08 +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="f403045f4d1a9ee99c0556775f78" X-Trace: blaine.gmane.org 1502445649 15418 195.159.176.226 (11 Aug 2017 10:00:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Aug 2017 10:00:49 +0000 (UTC) Cc: Paul Eggert , Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 11 12:00:39 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 1dg6k4-00038B-5f for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 12:00:32 +0200 Original-Received: from localhost ([::1]:53752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dg6kA-0002bX-Ap for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 06:00:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dg6jR-0002ZS-Mu for emacs-devel@gnu.org; Fri, 11 Aug 2017 05:59:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dg6jQ-0005rX-Mq for emacs-devel@gnu.org; Fri, 11 Aug 2017 05:59:53 -0400 Original-Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]:36856) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dg6jO-0005qj-9B; Fri, 11 Aug 2017 05:59:50 -0400 Original-Received: by mail-wr0-x22d.google.com with SMTP id y43so11694802wrd.3; Fri, 11 Aug 2017 02:59:50 -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=z/vqsVboaLTcig57qo97UOoVVGgXQ1uizva+HZ5caHM=; b=WW+438ntlZ5Hzmhpw12+GfH7MCyQ/fz2/gNQFnqU/6BmyGOy3TyJr1qhaBpAteQgtx avchW+46wKxtrj+7LFaqBM/dBjwOBsF6zLarxemcr7mC7zOvLBMaFkPctpckDY6MhV9U JjyGNyWbl8tg5VQz5JeuxoX2d7yZtEpjA7Ll/f65tgwO1Vk51bJjr4DlEZyABPb4dy6c R9rVA6vaLmb7jc1X1UDMud4G2eLGWOSqiuWLoBbi+CJQOcxNaGmoxk0w+GI2CC2y6VV4 JVxmVPmf0e3TQwYeul4vfvfCc43/F6ZATAiYNWvovU4HZY59FFIXwQA5b8JshlZqffYp 0/qw== 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=z/vqsVboaLTcig57qo97UOoVVGgXQ1uizva+HZ5caHM=; b=cgB7upSGK3gBoO+PPBjE16nqJvZYl71JPBzQi7I0XhYORe2XSeefgoLOX69N6GWpfZ /zLp/ESQt3QSlZRnMGaDQ6urop4XM6oeoQzkeGwy9IbasOsABucGAlHUvLSijSaF3b/9 9ay3jOBuKyyXnN4uo8oyJ/mfdYiXNy1POYLk3e7Djdh3+JjOpJtJyvVge7e4IqjH5FRH I3rbFH4ZbtZCrY1r4GtUiSokH0j5wEA5Lut5K79RRotSLF7M4qXkaGz3uGqm/WEoDw3a ESuSetEitNWbCmfPB4miKgiuU7jnD8UE3uSd3J7tbgkMc9CQ2eW0WQGL+7OLDTULB2Ct OHbQ== X-Gm-Message-State: AHYfb5ieJ9lBQOaoRtQYEdm7mq3/j1rsDAsmIj3W98sVQSVU8HK4dUIN nDDJ9x84+IuYXDiSFG9oBiFAWsKjyuXo X-Received: by 10.223.153.234 with SMTP id y97mr9921833wrb.41.1502445588898; Fri, 11 Aug 2017 02:59:48 -0700 (PDT) Original-Received: by 10.28.197.196 with HTTP; Fri, 11 Aug 2017 02:59:08 -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::22d 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:217423 Archived-At: --f403045f4d1a9ee99c0556775f78 Content-Type: text/plain; charset="UTF-8" By the way, the *gud* buffer's first line is > Current directory is ~/ However, the Emacs source code is in ~/emacs. Maybe this is the problem? But I started Emacs from ~/emacs. How can I set the *gud* buffer's current directory? On Fri, Aug 11, 2017 at 12:55 PM, Itai Berli wrote: > Typing "b main" in the *gud* buffer results in the following error > message: > > > Current buffer has no process > > On Fri, Aug 11, 2017 at 12:52 PM, Eli Zaretskii wrote: > >> > From: Itai Berli >> > Date: Fri, 11 Aug 2017 12:27:01 +0300 >> > Cc: Emacs developers >> > >> > Paul Eggert wrote: >> > >> > > type the GDB command "b Fexpand_file_name" to plant a breakpoint in >> (say) Fexpand_file_name >> > >> > What do you mean by 'Fexpand_file_name'? The name of a file, or the >> name of a function? >> >> It's the name of a function. >> >> > Could you give me >> > a concrete example? Suppose, for instance, I wish to place a breakpoint >> at the start of the 'main; function. How >> > can I do so? >> >> "b main". "b" is a short for "break". >> > > --f403045f4d1a9ee99c0556775f78 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
By the way, the *gud* buffer's first line is

<= /div>
>=C2=A0Current directory is ~/

Howeve= r, the Emacs source code is in ~/emacs. Maybe this is the problem? But I st= arted Emacs from ~/emacs. How can I set the *gud* buffer's current dire= ctory?

On Fr= i, Aug 11, 2017 at 12:55 PM, Itai Berli <itai.berli@gmail.com> wrote:
Typing= "b main<RET>" in the *gud* buffer results in the following= error message:

> Current buffer has no process=

On Fri, Aug 11, 2017 at 12:52 PM, Eli Zaretskii <eliz@gnu.org> = wrote:
> From: Itai Berli <itai.berli@gmail.com= >
> Date: Fri, 11 Aug 2017 12:27:01 +0300
> Cc: Emacs developers <emacs-devel@gnu.org>
>
> Paul Eggert wrote:
>
> > type the GDB command "b Fexpand_file_name" to plant a b= reakpoint in (say) Fexpand_file_name
>
> What do you mean by 'Fexpand_file_name'? The name of a file, o= r the name of a function?

It's the name of a function.

> Could you give me
> a concrete example? Suppose, for instance, I wish to place a breakpoin= t at the start of the 'main; function. How
> can I do so?

"b main".=C2=A0 "b" is a short for "break&q= uot;.


--f403045f4d1a9ee99c0556775f78--