From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 26 14:27:17 2011 Received: (at submit) by debbugs.gnu.org; 26 Oct 2011 18:27:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJ8C5-0002FX-0M for submit@debbugs.gnu.org; Wed, 26 Oct 2011 14:27:17 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJ8C2-0002FL-VJ for submit@debbugs.gnu.org; Wed, 26 Oct 2011 14:27:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJ8AG-0008HD-Fl for submit@debbugs.gnu.org; Wed, 26 Oct 2011 14:25:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:34611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJ8AG-0008H7-Cz for submit@debbugs.gnu.org; Wed, 26 Oct 2011 14:25:24 -0400 Received: from eggs.gnu.org ([140.186.70.92]:39898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJ8AE-00074j-SY for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2011 14:25:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJ8AD-0008Gl-DU for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2011 14:25:22 -0400 Received: from granite1.mail.cornell.edu ([128.253.83.141]:35571 helo=authusersmtp.mail.cornell.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJ8AD-0008G3-AR for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2011 14:25:21 -0400 Received: from [128.84.234.240] (dhcp240.math.cornell.edu [128.84.234.240]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id p9QIPFtF002188 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 26 Oct 2011 14:25:16 -0400 (EDT) Message-ID: <4EA85078.6000408@cornell.edu> Date: Wed, 26 Oct 2011 14:24:56 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.0.90; M-x gdb should check whether target supports non-stop mode Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.8 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.8 (-----) If non-stop mode is set, M-x gdb tries to set the target for running in non-stop mode; see line 883 of gdb-mi.el. But there's no check to see if that succeeded. If it didn't, any attempt to run the program results in the error message "The target does not support running in non-stop mode.", which might mystify many users. This is a problem on Cygwin, where apparently no targets support running in non-stop mode (as far as I can tell), and it may also be a problem on Windows; see http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6072 To reproduce: emacs -Q M-x gdb RET The following patch fixes it. OK to apply? === modified file 'lisp/progmodes/gdb-mi.el' --- lisp/progmodes/gdb-mi.el 2011-10-06 16:11:38 +0000 +++ lisp/progmodes/gdb-mi.el 2011-10-26 16:44:38 +0000 @@ -881,8 +881,17 @@ (setq gdb-version "pre-7.0")) (setq gdb-version "7.0+") (gdb-input (list "-gdb-set target-async 1" 'ignore)) + (gdb-input (list "-list-target-features" 'gdb-check-target-async)) (gdb-input (list "-enable-pretty-printing" 'ignore)))) +(defun gdb-check-target-async () + (goto-char (point-min)) + (unless (re-search-forward "async" nil t + (message + "Target doesn't support non-stop mode. Turning it off.") + (setq gdb-non-stop nil) + (gdb-input (list "-gdb-set non-stop 0" 'ignore)))) + (defvar gdb-define-alist nil "Alist of #define directives for GUD tooltips.") (defun gdb-create-define-alist () From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 29 22:30:59 2011 Received: (at 9878-done) by debbugs.gnu.org; 30 Nov 2011 03:30:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVass-0001Xy-2e for submit@debbugs.gnu.org; Tue, 29 Nov 2011 22:30:59 -0500 Received: from granite1.mail.cornell.edu ([128.253.83.141] helo=authusersmtp.mail.cornell.edu) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVasp-0001Xq-IZ for 9878-done@debbugs.gnu.org; Tue, 29 Nov 2011 22:30:56 -0500 Received: from [192.168.1.4] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id pAU3Ur8G015946 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <9878-done@debbugs.gnu.org>; Tue, 29 Nov 2011 22:30:54 -0500 (EST) Message-ID: <4ED5A36F.8040900@cornell.edu> Date: Tue, 29 Nov 2011 22:30:55 -0500 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: 9878-done@debbugs.gnu.org Subject: Re: bug#9878: 24.0.90; M-x gdb should check whether target supports non-stop mode References: <4EA85078.6000408@cornell.edu> In-Reply-To: <4EA85078.6000408@cornell.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -5.8 (-----) X-Debbugs-Envelope-To: 9878-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.8 (-----) On 10/26/2011 2:24 PM, Ken Brown wrote: > The following patch fixes it. OK to apply? Patch applied. Closing bug. From unknown Tue Jun 17 22:01:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 28 Dec 2011 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator