From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: How to run emacs under a debugger on macOS? Date: Sat, 11 Jan 2020 19:11:00 +0000 Message-ID: <20200111191100.GB40876@breton.holly.idiocy.org> References: <0100016f94604822-8343ce50-8fdf-4b92-9e0b-70d45cda9dc2-000000@email.amazonses.com> <20200111134835.GA40597@breton.holly.idiocy.org> <0100016f95fa9872-32c0a414-e65c-487d-b827-ffa2f90407c0-000000@email.amazonses.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="134966"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel To: Pankaj Jangid Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 11 20:12:59 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iqMAr-000OLU-KP for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Jan 2020 20:11:53 +0100 Original-Received: from localhost ([::1]:60176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqMAq-0002Sm-Ha for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Jan 2020 14:11:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42607) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqMA6-0001uw-4s for emacs-devel@gnu.org; Sat, 11 Jan 2020 14:11:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqMA5-00067g-0q for emacs-devel@gnu.org; Sat, 11 Jan 2020 14:11:06 -0500 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:45209) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iqMA3-00061K-Pl for emacs-devel@gnu.org; Sat, 11 Jan 2020 14:11:04 -0500 Original-Received: by mail-wr1-x42b.google.com with SMTP id j42so4751434wrj.12 for ; Sat, 11 Jan 2020 11:11:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=LC405DQN0nIxqU5ZV/A/xonytgyc1wBN69lci7oLrog=; b=obqJiNbWxS6YdY88A4EnJ66WxNtmTiJ7idi6VKLWuxMpkokvIrrcKvG69CJXGzPA5Q H8FcWuFbz0+jX0QJSTa2zutz/hMnqtYaOCcGRl0KFb3QDeRWPth1CUfENGDq3VgMezDt yjassUic9moCJSlo322vNj9MlyD5n/HM6KSvyQQLxguJKvOk2dBlvbhntsdC4N6/5q3o iQeqpinEEQUKL+ipyoyeU4DKGb9f32qOckkk875GmbJ2GNMfkCddmnsTJ9OVonDe7AP1 1bJq5vaFF5LL91DgoFDWk6eR7S6Fi1n1TCR3I8p7Pp2cVePjg8b9s9xEyoU3w8zMkA0R crnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=LC405DQN0nIxqU5ZV/A/xonytgyc1wBN69lci7oLrog=; b=tj3t3qLDFZoHjNB9aPK4P+RauW9DlmrW2y18zLZt7CEuS1jV39YP4bmYewuTtplSx7 FVgrp2f4ITLeviFdVuQRWjy3j3qUXanIGrmfrJSEapbZWkKJRYQxc3HbKcwKyOGYrJDI DCl+l/2J5VHSvgeKJe64Yl5tOARHLpcT9k1/zF2QJeuXu86a2PVNCPryqnDvZEYXtXvs t0gf7mf5Y/GViq9PoxwjO2HmTT76Nb62v0H7NS0tvYYiOVB4HwwJJuTYO8TWTcJL/3V9 y9i5OTP09jPWr6wsStU7CXod/EalvXm6fUfN5yWZee9YG22ZP+UqF6o6BLXqzQXHj4Tk cmpw== X-Gm-Message-State: APjAAAUsgCaRDk8i3Q2zijU+yYGIUTE21RHFxD+30OU38xd7235vCu/w 69UJeNcW0oo1INrtT26bzt1MCsg+ixc= X-Google-Smtp-Source: APXvYqzagSf8dUcM3CVBAb6QcPw/NmoQ7QNhbB/cNmk02OoIaZ0k1byiTZxx0XE4dCNuaX84EjgLxQ== X-Received: by 2002:adf:dc86:: with SMTP id r6mr10511220wrj.68.1578769862519; Sat, 11 Jan 2020 11:11:02 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-3181-38ae-3880-6acc.holly.idiocy.org. [2001:8b0:3f8:8129:3181:38ae:3880:6acc]) by smtp.gmail.com with ESMTPSA id k16sm7528718wru.0.2020.01.11.11.11.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jan 2020 11:11:01 -0800 (PST) Content-Disposition: inline In-Reply-To: <0100016f95fa9872-32c0a414-e65c-487d-b827-ffa2f90407c0-000000@email.amazonses.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:244206 Archived-At: On Sat, Jan 11, 2020 at 07:00:26PM +0000, Pankaj Jangid wrote: > Alan Third writes: > > > On Sat, Jan 11, 2020 at 11:32:15AM +0000, Pankaj Jangid wrote: > >> 1. How to make debug build? 2. How to launch emacs under a debugger > >> on macos? 3. Any other instructions relevant for debugging. > > > > I usually do something like: > > > > ./configure CFLAGS="-g -O0" make make install lldb > > nextstep/Emacs.app/Contents/MacOS/Emacs > > Thanks. > > BTW I launched directory from the ./src/emacs after building with "-g > -O0". Yes, that works fine too. > One followup query: Does lldb also create similar dump that the gdb > creates when there is a crash? Yes. Most of the basic commands in gdb work in lldb too, but not all, so if you’re being given gdb commands and they don’t work I suggest you check https://lldb.llvm.org/use/map.html. -- Alan Third