From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: Debugging Emacs Date: Sat, 28 Nov 2015 19:39:38 +0000 Message-ID: <878u5hlxqd.fsf@russet.org.uk> References: <87r3jbicg0.fsf@russet.org.uk> <83wpt3qq7b.fsf@gnu.org> <87lh9jp073.fsf@russet.org.uk> <83h9k6r1z8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1448739609 24281 80.91.229.3 (28 Nov 2015 19:40:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Nov 2015 19:40:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 28 20:39:57 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a2lLh-0001bK-0m for ged-emacs-devel@m.gmane.org; Sat, 28 Nov 2015 20:39:57 +0100 Original-Received: from localhost ([::1]:33541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2lLk-00034L-FM for ged-emacs-devel@m.gmane.org; Sat, 28 Nov 2015 14:40:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2lLX-000344-T4 for emacs-devel@gnu.org; Sat, 28 Nov 2015 14:39:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2lLX-0004vg-27 for emacs-devel@gnu.org; Sat, 28 Nov 2015 14:39:47 -0500 Original-Received: from cheviot12.ncl.ac.uk ([128.240.234.12]:40352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2lLR-0004vB-5j; Sat, 28 Nov 2015 14:39:41 -0500 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot12.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1a2lLP-00077u-AR; Sat, 28 Nov 2015 19:39:39 +0000 Original-Received: from cpc6-benw10-2-0-cust45.gate.cable.virginm.net ([92.238.179.46] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1a2lLO-0007Di-W2; Sat, 28 Nov 2015 19:39:39 +0000 In-Reply-To: <83h9k6r1z8.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 28 Nov 2015 09:56:43 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195477 Archived-At: Eli Zaretskii writes: >> Yes, that was sort of the idea. Personally, I'd not be too worried about >> repeating things. I realise that this adds to the maintainance burden, >> but references to later sections make for harder reading. > > It is OK to say something simple in the preamble, and refer to later > sections for more in-depth detail. > > But I will now stop writing comments to a text I didn't yet see, and > let you work on it instead ;-) It was at the bottom of the original email! While I am mailing, I had one idea which might simplify debugging. Currently, you need to break-point some function to get control to GDB before you launch Emacs. Why not add a null function to Emacs core for the purpose? Guaranteed never to be called from anywhere, does nothing, and with a breakpoint could be added to .gdbinit. Then, after running Emacs, "M-x break" would automatically pass control back to GDB without any further set up. Just a thought. Phil