From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Revilak Newsgroups: gmane.emacs.devel Subject: Re: GDB on Mac is (NOT) Broken Date: Sun, 14 Mar 2010 22:43:29 -0400 Message-ID: <20100315024329.GB3386@srevilak.net> References: <20100314185409.00EDD9B718@mxperim5.sea5.speakeasy.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oLBj+sq0vYjzfsbl" X-Trace: dough.gmane.org 1268621045 3689 80.91.229.12 (15 Mar 2010 02:44:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 15 Mar 2010 02:44:05 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 15 03:44:01 2010 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.69) (envelope-from ) id 1Nr0HY-0005KR-1B for ged-emacs-devel@m.gmane.org; Mon, 15 Mar 2010 03:43:52 +0100 Original-Received: from localhost ([127.0.0.1]:38283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nr0HX-0001PB-Bg for ged-emacs-devel@m.gmane.org; Sun, 14 Mar 2010 22:43:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nr0HR-0001OX-I9 for emacs-devel@gnu.org; Sun, 14 Mar 2010 22:43:45 -0400 Original-Received: from [140.186.70.92] (port=46320 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nr0HL-0001Nh-U2 for emacs-devel@gnu.org; Sun, 14 Mar 2010 22:43:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nr0HG-0003mw-Mv for emacs-devel@gnu.org; Sun, 14 Mar 2010 22:43:39 -0400 Original-Received: from mail6.sea5.speakeasy.net ([69.17.117.8]:50493) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nr0HG-0003mn-EP for emacs-devel@gnu.org; Sun, 14 Mar 2010 22:43:34 -0400 Original-Received: (qmail 26257 invoked from network); 15 Mar 2010 02:43:31 -0000 Original-Received: from pool-72-93-82-200.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[72.93.82.200]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 15 Mar 2010 02:43:31 -0000 Content-Disposition: inline In-Reply-To: <20100314185409.00EDD9B718@mxperim5.sea5.speakeasy.net> User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/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:121984 Archived-At: --oLBj+sq0vYjzfsbl Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable >> I just compiled 23.1.94 on OSX leopard with-x and it freezes in >> following these simple steps: >> 1. M-x gdb >> 2. att TAB I reported this problem in=20 . Nick Roberts was kind enough to guide me through some diagnostic exercies. Perhaps our most interesting finding was message 34. http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5404#34 The hang appears to be (at least somewhat) related to the onlcr tty setting for the gdb subprocess. And there may be some overlap with the EOL conversions that YAMAMOTO Mitsuharu noted. The workaround I've been using on Mac OS X is Within the *gud-PROGRAM* buffer, run "shell stty -onlcr" after the target program starts running, and don't try to use symbol completion before the target program starts. The GDB is Apple's GDB. I tend to move around between two Mac OS systems, and two GNU/Linux systems. 5404's behavior is reliably reproducible on Mac OS X 10.4 and 10.6 with Apple's GDB. I've never seen 5404's symptoms occur on GNU/Linux. I don't know whether 5404's behavior appears on Windows. Finally, I haven't had a chance to compile 23.1.94 yet (still using 23.1.93). So I can't say if any of 5404's behavior no longer applies to 23.1.94. Steve --oLBj+sq0vYjzfsbl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) iEYEARECAAYFAkudntEACgkQX7YJI4BuyDQaNQCcD20pSduX44XC/X0ruXbrUHkk LWkAn2ud8pojodm5bl3io6mNrU50V11g =gfO4 -----END PGP SIGNATURE----- --oLBj+sq0vYjzfsbl--