From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; gdb not running the program first time around Date: Fri, 22 Feb 2008 21:43:19 +1300 Message-ID: <18366.35623.165446.202435@kahikatea.snap.net.nz> References: <87r6fhi2ov.fsf@tnei.co.uk> <18355.35950.231456.824299@kahikatea.snap.net.nz> <47B4042B.6000702@tnei.co.uk> <20080214230122.A712A8FC6D@kahikatea.snap.net.nz> <47B5775F.1010808@tnei.co.uk> <47BD44EE.30402@tnei.co.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1203674320 8289 80.91.229.12 (22 Feb 2008 09:58:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Feb 2008 09:58:40 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: robert marshall Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 22 10:59:01 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JSUg9-0004jd-E3 for ged-emacs-devel@m.gmane.org; Fri, 22 Feb 2008 10:58:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSUfe-0000Tr-Bn for ged-emacs-devel@m.gmane.org; Fri, 22 Feb 2008 04:58:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JSUeo-00086d-5Y for emacs-devel@gnu.org; Fri, 22 Feb 2008 04:57:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JSUbe-00066G-5m for emacs-devel@gnu.org; Fri, 22 Feb 2008 04:54:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSUbd-00065O-QM for emacs-devel@gnu.org; Fri, 22 Feb 2008 04:54:13 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JSUbd-0005nj-4b for emacs-devel@gnu.org; Fri, 22 Feb 2008 04:54:13 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JSTVF-0003Yh-Kq for emacs-pretest-bug@gnu.org; Fri, 22 Feb 2008 03:43:33 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JSTVC-000462-8l for emacs-pretest-bug@gnu.org; Fri, 22 Feb 2008 03:43:33 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JSTVB-00045t-VN for emacs-pretest-bug@gnu.org; Fri, 22 Feb 2008 03:43:30 -0500 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JSTVA-0005i4-OF for emacs-pretest-bug@gnu.org; Fri, 22 Feb 2008 03:43:29 -0500 Original-Received: from kahikatea.snap.net.nz (14.60.255.123.dynamic.snap.net.nz [123.255.60.14]) by viper.snap.net.nz (Postfix) with ESMTP id 54B133DA7BE; Fri, 22 Feb 2008 21:43:23 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id D099B8FC6D; Fri, 22 Feb 2008 21:43:19 +1300 (NZDT) In-Reply-To: <47BD44EE.30402@tnei.co.uk> X-Mailer: VM 7.19 under Emacs 22.1.90.4 X-detected-kernel: by mx20.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89946 gmane.emacs.pretest.bugs:21262 Archived-At: > Just to confirm that the patch still works ok - the only issue where it > appears to get confused - though I've not verified whether the pre-patch > code also had this issue - is when gdb crashes - then a M-x gdb restarts > the debugger but doesn't produce a prompt until you press return OK, thanks for getting back. I've only applied the patch to trunk (which I think you have anyway) because it causes problems to gud-gdb which need to be investigated. Gdb crashing should be a rare occurance but the problem coincidentally seems to be solved by Stefan Monnier's recent patch. If you're updating in CVS you can get it that way, otherwise it's reproduced below. -- Nick http://www.inet.net.nz/~nickrob --- orig/lisp/progmodes/gdb-ui.el +++ mod/lisp/progmodes/gdb-ui.el @@ -150,7 +150,7 @@ (defvar gdb-prompting nil "True when gdb is idle with no pending input.") -(defvar gdb-output-sink 'user +(defvar gdb-output-sink nil "The disposition of the output of the current gdb command. Possible values are these symbols: @@ -317,6 +317,7 @@ (local-set-key "\C-i" 'gud-gdb-complete-command) (setq comint-prompt-regexp "^(.*gdb[+]?) *") (setq paragraph-start comint-prompt-regexp) + (setq gdb-output-sink 'user) (setq gdb-first-prompt t) (setq gud-running nil) (setq gdb-ready nil)