From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#9767: 24.0.90; gdb initialization on Cygwin Date: Sun, 16 Oct 2011 19:08:32 -0400 Message-ID: <4E9B63F0.5040409@cornell.edu> References: <4E9B0033.2070506@cornell.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1318806564 9215 80.91.229.12 (16 Oct 2011 23:09:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 16 Oct 2011 23:09:24 +0000 (UTC) To: 9767@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 17 01:09:20 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RFZpX-000150-VW for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Oct 2011 01:09:20 +0200 Original-Received: from localhost ([::1]:43737 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFZpW-0001Ps-F7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Oct 2011 19:09:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFZpU-0001Pa-4X for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2011 19:09:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFZpT-0001e1-1M for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2011 19:09:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFZpS-0001dw-Ug for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2011 19:09:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RFZqE-0001m5-F7 for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2011 19:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Oct 2011 23:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9767 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9767-submit@debbugs.gnu.org id=B9767.13188065666770 (code B ref 9767); Sun, 16 Oct 2011 23:10:02 +0000 Original-Received: (at 9767) by debbugs.gnu.org; 16 Oct 2011 23:09:26 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RFZpe-0001l9-5H for submit@debbugs.gnu.org; Sun, 16 Oct 2011 19:09:26 -0400 Original-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 1RFZpb-0001l1-C8 for 9767@debbugs.gnu.org; Sun, 16 Oct 2011 19:09:24 -0400 Original-Received: from [192.168.1.3] (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 p9GN8Y7M003441 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <9767@debbugs.gnu.org>; Sun, 16 Oct 2011 19:08:34 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: <4E9B0033.2070506@cornell.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 16 Oct 2011 19:10:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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:52699 Archived-At: On 10/16/2011 12:02 PM, Ken Brown wrote: > When I start a debugging session with M-x gdb, initialization doesn't > appear to complete. I don't get the "(gdb)" prompt, and the mode line > continues to say "initializing". If I press Return, I get the prompt > and the mode line changes to "ready". Everything works fine after that. > This seems Cygwin-specific; it doesn't happen on GNU/Linux. > > I've checked that all the strings that emacs sends to gdb during > initialization (via gdb-input) do in fact get sent. And I've tried > sending those same strings to gdb outside of emacs (except for > "-inferior-tty-set..."), and nothing strange happened. In particular, I > did have a "(gdb)" prompt at each stage. Further info: It seems that initialization is actually completing, but for some reason the buffer is not being redisplayed. To test this, I inserted (sit-for .1) at the end of gdb-update to force redisplay, and that solved the problem. Unless someone who understands redisplay can figure out why redisplay isn't happening on Cygwin, I'm inclined to apply the following patch: === 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-16 23:04:28 +0000 @@ -1726,7 +1726,8 @@ (gdb-force-mode-line-update (propertize "initializing..." 'face font-lock-variable-name-face)) (gdb-init-1) - (setq gdb-first-prompt nil)) + (setq gdb-first-prompt nil) + (if (eq system-type 'cygwin) (sit-for .1))) (gdb-get-main-selected-frame) ;; We may need to update gdb-threads-list so we can use Would this be reasonable? Ken