From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: Help getting started debugging Emacs on macOS Sierra Date: Fri, 11 Aug 2017 20:46:25 +0900 (JST) 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/mixed; BOUNDARY="8323329-960189907-1502451987=:17216" X-Trace: blaine.gmane.org 1502452223 6264 195.159.176.226 (11 Aug 2017 11:50:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Aug 2017 11:50:23 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: Emacs developers To: Itai Berli Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 11 13:50:11 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 1dg8S3-0000kj-Cc for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 13:50:03 +0200 Original-Received: from localhost ([::1]:32988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dg8S6-0007nF-P5 for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2017 07:50:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dg8Oh-0005sD-6f for emacs-devel@gnu.org; Fri, 11 Aug 2017 07:46:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dg8Od-0001v2-9L for emacs-devel@gnu.org; Fri, 11 Aug 2017 07:46:35 -0400 Original-Received: from mail-pg0-x230.google.com ([2607:f8b0:400e:c05::230]:34240) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dg8Od-0001ug-3Q for emacs-devel@gnu.org; Fri, 11 Aug 2017 07:46:31 -0400 Original-Received: by mail-pg0-x230.google.com with SMTP id u185so14712055pgb.1 for ; Fri, 11 Aug 2017 04:46:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=9LMNNQICvhAAk7yaKA94soU3xaURz25+qtXDkMk3xp4=; b=GH+3XsqBhS1jMhmRfXbs1M4BzqemUBMvbBc/oNE0tMKgw7Sf8JXXeVvRywnbyr4zF0 4ytIPijBraXPbjhBw8kRQj2HqB7keu7HDUXXZ20IipkJQlzF1sdQjuR80Q2f82Chr1KA PevPBcHJwA3rHA07ipcNWvpo/1i45RCpYqE9cWXb73mPJuK2Q78DBP2yzlywkMBoreUB oZqC8G2XOQLUB//kdSFBB650xtLfo6r/N6WHkK77lql7sEDXWwaJB+GLXbQzlr2h4lfl LqK2muIsRffLH+umAdBPin8WsFfB2lV9RCOrxy/2m1wDg9wRmPlgjmCcquWa8skN52rS NwHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=9LMNNQICvhAAk7yaKA94soU3xaURz25+qtXDkMk3xp4=; b=KkLC2BNpy4Y44kvGc86Q6RUG9aS8d/nsK0ELgk/fJUHImTZqew2BxKe/h3nqBELMn1 aT319AGtiO8I3gV3UZ6CGU8ZLr18KHfpPa5ULT3RZK2Mc0CEitu/dX71Bg1lUI5PTc4a Hf9kZKS4gragn0yUvgussxbUo0qAXG2G7XKyriIW0VqP8ZTgJ5KBJ1HQqlVoSKg31Y1Y mT1tNI8cfYgtNqwBlF21dNqc91yrz2uJvG54xcdZVV7iY7KzzZbAHFEOKUwxuCdz00OC X8CnS/IKo0zO91Ugc7XmLKjMCQANnacSiBH1KUexpvnMNKEFfJA1CVBJY1rbYpV8DOD3 43Gg== X-Gm-Message-State: AHYfb5gUg+gNtlgnZs3bFCV7viwambt0byttcEALhhKH73EEo6mAQEPc WEqbUkjjgYma5Q== X-Received: by 10.99.97.144 with SMTP id v138mr15216766pgb.117.1502451988521; Fri, 11 Aug 2017 04:46:28 -0700 (PDT) Original-Received: from calancha-pc (170.224.128.101.dy.bbexcite.jp. [101.128.224.170]) by smtp.gmail.com with ESMTPSA id i4sm3121342pfg.51.2017.08.11.04.46.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Aug 2017 04:46:27 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::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:217426 Archived-At: --8323329-960189907-1502451987=:17216 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Fri, 11 Aug 2017, Itai Berli wrote: > However, now I get the > following complaint from gdb: > > > No executable file specified. > > Use the "file" or "exec-file" command. That means, gdb doesn't know which program to debug. > Here's the complete contents of the *gud* buffer. > Current directory is ~/ > No symbol table is loaded.  Use the "file" command. > Make breakpoint pending on future shared library load? (y or [n]) y > Breakpoint 1 (main) pending. > (gdb) r > Starting program:   > No executable file specified. > Use the "file" or "exec-file" command. Assuming your executable is at: ~/emacs/src/bootstrap-emacs you can do in the gdb command line: file ~/emacs/src/bootstrap-emacs > On Fri, Aug 11, 2017 at 12:59 PM, Itai Berli wrote: > 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? DUNNO why it doesn't starts at ~/emacs. You can try from a terminal: |> emacs ~/emacs/src ;; now call gdb M-x gdb RET ; it should offer to debug 'bootstrap-emacs' --8323329-960189907-1502451987=:17216--