From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: Debugging Emacs Date: Sun, 29 Nov 2015 11:25:22 -0800 Message-ID: References: <87r3jbicg0.fsf@russet.org.uk> <83wpt3qq7b.fsf@gnu.org> <87lh9jp073.fsf@russet.org.uk> <83h9k6r1z8.fsf@gnu.org> <878u5hlxqd.fsf@russet.org.uk> <8337vpq2po.fsf@gnu.org> <87zixxkdth.fsf@russet.org.uk> <86k2p0vfl0.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1448827746 22365 80.91.229.3 (29 Nov 2015 20:09:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Nov 2015 20:09:06 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org, Phillip Lord To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 29 21:08:55 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 1a38HH-0005eS-E2 for ged-emacs-devel@m.gmane.org; Sun, 29 Nov 2015 21:08:55 +0100 Original-Received: from localhost ([::1]:37567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a38HL-0006bh-5v for ged-emacs-devel@m.gmane.org; Sun, 29 Nov 2015 15:08:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a38HI-0006bJ-Ka for emacs-devel@gnu.org; Sun, 29 Nov 2015 15:08:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a38HH-0005U1-MX for emacs-devel@gnu.org; Sun, 29 Nov 2015 15:08:56 -0500 Original-Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:34802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a38HC-0005Sp-2M; Sun, 29 Nov 2015 15:08:50 -0500 Original-Received: by padhx2 with SMTP id hx2so161708406pad.1; Sun, 29 Nov 2015 12:08:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version:content-type; bh=pWUs95GyLLPV0W00LNw4q2ZWivoyA1NDidOWj0yvL+E=; b=lduTPaHBW70j3xWfMPTTQR/XiRp64AEOpp3oL8hvjfG1OVE+vjGmjEbnKU+Dod8rMA I5zB/TxHpoNZcNQxmbf14/pPGhf9pFsIwuYjWGVWrHxVTGlNUM31GwwnQc0Ep06RjIUf xwll8OdxBXxA30kGf8RTul6oejbJtCSmen1BGmeJciGF0s/nsvge+nFTFUhINRR98iWn VI5kiFhMDDRNEK4HFGkDEVU9hme4jL+uoBaa2j087n82SEW1119CYJ7uk/K6KaCyN6js tOknrY0IPqpfTG2gbNPJVNAzPV95ft4fooJoZ90Ygvmijrnr/7FPr2jsc6JoJq8c4Szm umgg== X-Received: by 10.67.4.65 with SMTP id cc1mr21768207pad.131.1448827729284; Sun, 29 Nov 2015 12:08:49 -0800 (PST) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id c79sm46397872pfj.71.2015.11.29.12.08.47 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 29 Nov 2015 12:08:48 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id 0D1F310BDEF1C; Sun, 29 Nov 2015 12:08:46 -0800 (PST) In-Reply-To: <86k2p0vfl0.fsf@stephe-leake.org> (Stephen Leake's message of "Sun, 29 Nov 2015 12:13:47 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Mail-Followup-To: Stephen Leake , phillip.lord@russet.org.uk (Phillip Lord), Eli Zaretskii , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22d 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:195566 Archived-At: >>>>> Stephen Leake writes: > phillip.lord@russet.org.uk (Phillip Lord) writes: >> Now, if we had a command, say `break', implemented in C, then added a >> "breakpoint Fbreak" into .gdbinit, then all of this would happen >> automatically. Under GDB, then "M-x break" or (break) Emacs would halt. >> Outside M-x break would do nothing. > I would find this convenient; I would not have to remember what function I > had set a break in for my current debug session; it would always be the same > one. I would also like this. I've injected similar "debug hooks" into other products before, and it is most helpful. John