From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: GDB on Mac is Broken Date: Sat, 13 Mar 2010 10:43:14 +0200 Message-ID: <831vfo393x.fsf@gnu.org> References: <19354.32067.21297.436863@fencepost.gnu.org> <8363503bhz.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1268469940 7176 80.91.229.12 (13 Mar 2010 08:45:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Mar 2010 08:45:40 +0000 (UTC) Cc: 5712@debbugs.gnu.org, emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 13 09:45:35 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 1NqMy6-0004Tw-Fs for ged-emacs-devel@m.gmane.org; Sat, 13 Mar 2010 09:45:10 +0100 Original-Received: from localhost ([127.0.0.1]:37264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NqMy5-0003tL-Rp for ged-emacs-devel@m.gmane.org; Sat, 13 Mar 2010 03:45:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NqMxa-0003NI-Re for emacs-devel@gnu.org; Sat, 13 Mar 2010 03:44:38 -0500 Original-Received: from [140.186.70.92] (port=42576 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NqMxY-0003Ku-I6 for emacs-devel@gnu.org; Sat, 13 Mar 2010 03:44:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NqMxW-0007C8-TL for emacs-devel@gnu.org; Sat, 13 Mar 2010 03:44:36 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:60574) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NqMxW-0007C1-Ls for emacs-devel@gnu.org; Sat, 13 Mar 2010 03:44:34 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0KZ700M00PD1O600@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sat, 13 Mar 2010 10:43:08 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.70.214.230]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KZ700LSGPJVFM60@a-mtaout21.012.net.il>; Sat, 13 Mar 2010 10:43:08 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:121894 Archived-At: > Date: Sat, 13 Mar 2010 17:05:41 +0900 > From: YAMAMOTO Mitsuharu > Cc: emacs-devel@gnu.org > > I should have been explained more why the difference in EOL conversion > affects this issue. The hang in Emacs 23 on Mac OS X is caused by > unexpected ^M at EOL when processing gdb output. Gdb actually outputs > ^M, but GUD in Emacs 22 did not see ^M because it used dos (CRLF) EOL > conversion due to the comint code I showed in my previous mail. Ah, thanks -- this is the missing piece, then. Is this ^M specific to OS X, or does it happen on GNU/Linux as well? We should probably add this info to the bug report (CC'ed). In any case, I think it's GUD that needs to explicitly set the decoding part of process-coding-system to handle CRLF, either on OS X or on all platforms. The two places you show whose changes contribute to this problem are too general to modify them now in order to solve this specific problem, IMO.