From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.bugs Subject: bug#22984: 25.0.92; Typo in etc/DEBUG Date: Fri, 11 Mar 2016 14:30:29 -0400 Message-ID: <878u1o50l6.fsf@gmail.com> References: <87h9gd3ux3.fsf@gmail.com> <838u1pj996.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1457721091 22287 80.91.229.3 (11 Mar 2016 18:31:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2016 18:31:31 +0000 (UTC) Cc: 22984@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 11 19:31:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aeRqB-0004B1-4Z for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Mar 2016 19:31:11 +0100 Original-Received: from localhost ([::1]:57117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeRqA-0003x9-Ag for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Mar 2016 13:31:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeRq7-0003x3-17 for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 13:31:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeRq1-0006aM-Rm for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 13:31:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeRq1-0006aI-O1 for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 13:31:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aeRq1-0003v1-Iz for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 13:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: nljlistbox2@gmail.com (N. Jackson) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Mar 2016 18:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22984 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22984-submit@debbugs.gnu.org id=B22984.145772103915035 (code B ref 22984); Fri, 11 Mar 2016 18:31:01 +0000 Original-Received: (at 22984) by debbugs.gnu.org; 11 Mar 2016 18:30:39 +0000 Original-Received: from localhost ([127.0.0.1]:45397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aeRpf-0003uR-CZ for submit@debbugs.gnu.org; Fri, 11 Mar 2016 13:30:39 -0500 Original-Received: from mail-io0-f176.google.com ([209.85.223.176]:32802) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aeRpd-0003uF-IM for 22984@debbugs.gnu.org; Fri, 11 Mar 2016 13:30:37 -0500 Original-Received: by mail-io0-f176.google.com with SMTP id n190so156317729iof.0 for <22984@debbugs.gnu.org>; Fri, 11 Mar 2016 10:30:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=3xxGy7BA44FH0WUWYid94+KYddVXykENI9N7rQ2ve7M=; b=qGpoAA3ugUnK4nIg/7+ISzjMaXIUsvmmUk/dl1Gf7FlR6I/MWnAe42pkbPmtvmKbwQ aYQUqsT+TnDFlJvofe+T5XQh+dqX0AM7VInYYz2N7X/ZcMQkI25LB9yMlMRUN+UY7zQu bPAHh65sfhn0UyKKVHv81NcgVONUNzNz2Zhhy64aagdLD5YocI4VA+tuj9hBLRwYNfKc WKfWABVbWiYtpRt4H2z2htXjcAnDkD89TM+De39fGY7Q9operzQwdK4yYm86W9N9o0Ck EjRNdA3Ee0cPM0P6I4p62qkikgMi3QsWpiY7J6pS89+AqT8JIrGTRhWSGW3tfioJNMdE DSUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=3xxGy7BA44FH0WUWYid94+KYddVXykENI9N7rQ2ve7M=; b=XOjaroy3mYeIiMH4CjXTSewmsJMyzX879mTk6h51W79a/m7ORU4ueuBA1xNW57Eeej LDsYlW5rxSCJ/VfUsvtdSqlqkX2SRHzFlJJuNDhk+jzmH/IMMkNiRR/n0vyPc9pOIYif KikHwnV0fjGGeKdXs2RpuXRQP5Ha+2dKDlDCiBabyFUOCNZPRJMdnqQMiuUPyGqlkPDd hRsNx7RayGcRrQhU7ghO3rUOXkYVpWvKfg5Ty6bg35x+lRz5rR0v1Q2+kVUZt1zzT8GY ZXR9VPy6z+8ikTaHdIzCqQz6MK1foWy3avRZTAdGL7QEbmYDIJTF6Mxd8vJp1LBFL8Ln JDBw== X-Gm-Message-State: AD7BkJILSDlDPxE1a4rvKNllBZekcP4pSayIO7SxPeDc0EltMHOqY6RnAV4JbC5gtrVJQg== X-Received: by 10.107.11.10 with SMTP id v10mr11990111ioi.188.1457721031618; Fri, 11 Mar 2016 10:30:31 -0800 (PST) Original-Received: from moondust.nodomain.none (blk-30-140-134.eastlink.ca. [96.30.140.134]) by smtp.gmail.com with ESMTPSA id z200sm3955708iod.26.2016.03.11.10.30.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Mar 2016 10:30:30 -0800 (PST) In-Reply-To: <838u1pj996.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 11 Mar 2016 17:59:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114770 Archived-At: At 17:59 +0200 on Friday 2016-03-11, Eli Zaretskii wrote: > >> Additionally, it might be helpful if this file mentioned the "debugger" >> that pops up when debug-on-error is non-nil. > > That's not really what that file is about. > >> This "debugger" doesn't seem to be a debugger at all, but just a >> help window with a backtrace in it. > > No, it's a debugger. See the node "Debugger" in the ELisp manual, it > is described there. I see. Thank you. However, the file is named "DEBUG" and the title is "Debugging GNU Emacs", so it is by no means obvious that this is not the right file to look at. So perhaps the title should be something like "Debugging GNU Emacs with GDB", and perhaps it should start out by saying something along the lines of This file is about debugging Emacs with GDB. For information about the Lisp debugger and about Edebug (the source-level debugger for Emacs Lisp programs), see the node "Debugging" in the Elisp manual. >> Also, can one use `M-x gdb RET' in the same instance of Emacs that one >> wishes to debug? > > No, of course not. When you attach GDB to a program, GDB stops its, > so Emacs will stop responding, and you will not be able to continue > debugging. > > But you can run a second instance of the same binary, and debug the > first instance from that second instance. Perhaps this is what you > had in mind, and this is just a misunderstanding caused by the vague > meaning of "instance"? Hah, no. I've only ever used GDB from the command line. It seemed like an (insanely) neat trick if you could run GDB in the same instance of Emacs as one was debugging. It was my fuzzy thinking along with the following sentence that led me astray: This will suggest the default binary to debug; if you are going to start a new Emacs process, change it as needed to point to the correct binary. I think the full meaning of this sentence only becomes clear after one reads the following sentence: Alternatively, if you want to attach the debugger to an already running Emacs process... The problems with the first sentence are "you", "new", and "it". Perhaps it could be made slightly clearer? Perhaps something along the lines of: This will suggest the default binary for GDB to start; if you want GDB to start a different binary, change the suggestion as needed. Alternatively, if you want to attach GDB to an already running Emacs process... Regards, N.