From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: GDB on Mac is Broken Date: Sat, 13 Mar 2010 16:03:14 +0000 Organization: University of Cambridge Message-ID: References: <19354.32067.21297.436863@fencepost.gnu.org> <8363503bhz.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1268496230 14485 80.91.229.12 (13 Mar 2010 16:03:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Mar 2010 16:03:50 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 13 17:03:46 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 1NqToY-0005Ni-1o for ged-emacs-devel@m.gmane.org; Sat, 13 Mar 2010 17:03:46 +0100 Original-Received: from localhost ([127.0.0.1]:60860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NqToX-0005CI-L9 for ged-emacs-devel@m.gmane.org; Sat, 13 Mar 2010 11:03:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NqToS-0005C5-FV for emacs-devel@gnu.org; Sat, 13 Mar 2010 11:03:40 -0500 Original-Received: from [140.186.70.92] (port=35269 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NqToO-0005BV-5H for emacs-devel@gnu.org; Sat, 13 Mar 2010 11:03:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NqToJ-0002do-D4 for emacs-devel@gnu.org; Sat, 13 Mar 2010 11:03:35 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:33575) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NqToJ-0002dP-7U for emacs-devel@gnu.org; Sat, 13 Mar 2010 11:03:31 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NqToE-0005Cw-DV for emacs-devel@gnu.org; Sat, 13 Mar 2010 17:03:26 +0100 Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Mar 2010 17:03:26 +0100 Original-Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Mar 2010 17:03:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:vpdHlLKQ/gVBJTS3JvsBlVe+/gs= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:121904 Archived-At: On 2010-03-13 08:05 +0000, YAMAMOTO Mitsuharu wrote: >> Could you please explain how these two differences explain the bug? >> I'm afraid I don't see the immediate connection. > > 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. > > YAMAMOTO Mitsuharu > mituharu@math.s.chiba-u.ac.jp Another oddity to this is if I change the process coding system interactively by C-x RET p and give 'utf-8 for both values, the completion will work because the coding is now: (utf-8 . utf-8-unix) but doing it in elisp as this: (add-hook 'gud-mode-hook (lambda () (set-buffer-process-coding-system 'utf-8 'utf-8))) fails. The process coding system is: (utf-8-unix . utf-8-unix) different to the interactive changed one. I have found the exact same cause of the freeze and have been using this workaround: (add-hook 'gud-mode-hook (lambda () (set-buffer-process-coding-system 'utf-8-dos 'utf-8))) I also wish a proper fix is made available. Best wishes, Leo