From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#7507: 24.0.50; GDB dialog: default should not be `Yes' if GDB is not installed Date: Thu, 28 Apr 2016 08:20:37 +0300 Message-ID: <83fuu6xqai.fsf@gnu.org> References: <77F0EF3B1EE7429F9E6A298D109B3962@us.oracle.com> <87bn4ur783.fsf@gnus.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1461820945 7367 80.91.229.3 (28 Apr 2016 05:22:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2016 05:22:25 +0000 (UTC) Cc: 7507@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 28 07:22:15 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 1aveOz-0001kn-Ts for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 07:22:14 +0200 Original-Received: from localhost ([::1]:46541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aveOy-000139-S0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 01:22:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aveOr-0000sU-TV for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 01:22:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aveOo-0001ij-8H for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 01:22:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aveOo-0001if-4h for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 01:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aveOn-0005ow-RR for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 01:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Apr 2016 05:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7507 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7507-submit@debbugs.gnu.org id=B7507.146182086722309 (code B ref 7507); Thu, 28 Apr 2016 05:22:01 +0000 Original-Received: (at 7507) by debbugs.gnu.org; 28 Apr 2016 05:21:07 +0000 Original-Received: from localhost ([127.0.0.1]:51064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aveNs-0005ni-8h for submit@debbugs.gnu.org; Thu, 28 Apr 2016 01:21:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60109) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aveNo-0005mt-5A for 7507@debbugs.gnu.org; Thu, 28 Apr 2016 01:21:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aveNf-0001bX-DG for 7507@debbugs.gnu.org; Thu, 28 Apr 2016 01:20:55 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aveNf-0001bT-9o; Thu, 28 Apr 2016 01:20:51 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3507 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aveNe-0005Uo-OZ; Thu, 28 Apr 2016 01:20:51 -0400 In-reply-to: <87bn4ur783.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 28 Apr 2016 00:56:44 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:117010 Archived-At: > From: Lars Ingebrigtsen > Date: Thu, 28 Apr 2016 00:56:44 +0200 > Cc: 7507@debbugs.gnu.org > > "Drew Adams" writes: > > > Why does the question asking whether I want to debug with GDB have `Yes' > > as the default value if I don't even have GDB installed? That obliges > > users to pick up the mouse and click `No' instead of just hitting RET. > > If you try to answer `Yes' you just get into trouble: That provokes a > > Microsoft error, letting you send lots of interesting info to MS for > > `GNU Emacs: The extensible self-documenting text editor'. I.e., `Yes' > > => Microsoft dialog box: `Send Error Report' or `Don't Send'. > > When does Emacs ask whether you want to debug something with GDB? I > can't recall it ever asking me that... This is about the Emacs Abort dialog that Emacs displays only on MS-Windows. FWIW, I don't think trying to detect whether GDB is installed when displaying that dialog is a reasonable request. That dialog is displayed when Emacs is already in bad trouble, so embarking on a non-trivial journey trying to find gdb.exe somewhere on the system, which involves issuing quite a few system calls, doesn't sound like a good idea. The standard dialog popped up by Windows in similar situations includes the "Debug" button even if debugging tools are not installed, so I think we don't do anything preposterously unreasonable here.