From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: GDB on Mac is Broken Date: Sat, 13 Mar 2010 17:05:41 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <19354.32067.21297.436863@fencepost.gnu.org> <8363503bhz.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1268467586 1274 80.91.229.12 (13 Mar 2010 08:06:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Mar 2010 08:06:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 13 09:06:22 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 1NqMMO-0000cR-23 for ged-emacs-devel@m.gmane.org; Sat, 13 Mar 2010 09:06:12 +0100 Original-Received: from localhost ([127.0.0.1]:32827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NqMMM-0008QL-HE for ged-emacs-devel@m.gmane.org; Sat, 13 Mar 2010 03:06:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NqMMI-0008Pw-Bw for emacs-devel@gnu.org; Sat, 13 Mar 2010 03:06:06 -0500 Original-Received: from [140.186.70.92] (port=40787 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NqMM6-0008Oh-Ky for emacs-devel@gnu.org; Sat, 13 Mar 2010 03:06:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NqMM4-0003CI-O1 for emacs-devel@gnu.org; Sat, 13 Mar 2010 03:05:54 -0500 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:64818) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NqMLx-0003Ap-Cj; Sat, 13 Mar 2010 03:05:45 -0500 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id CE446C055D; Sat, 13 Mar 2010 17:05:41 +0900 (JST) In-Reply-To: <8363503bhz.fsf@gnu.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by eggs.gnu.org: NetBSD 3.0 (DF) 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:121892 Archived-At: >>>>> On Sat, 13 Mar 2010 09:51:36 +0200, Eli Zaretskii said: >> Date: Sat, 13 Mar 2010 15:58:11 +0900 From: YAMAMOTO Mitsuharu >> >> >> The related difference between Emacs 22, on which the completion >> works, and Emacs 23 seems to be: >> >> 1. The default value of default-process-coding-system. 2. A change >> in comint-exec-1. >> >> For the first one, the value is (mule-utf-8 . mule-utf-8) in Emacs >> 22, and (utf-8-unix . utf-8-unix) in Emacs 23 on Mac OS X 10.6. > And what is wrong with the Emacs 23 default, exactly? Doesn't OS X > use LF as the end-of-line character, when communicating with > subprocesses in general and with GDB in particular? I've never said it's `wrong'; just different from Emacs 22, and that leads to the different behavior for completion in GUD between Emacs 22 and 23. It might be the case that what should be changed is at the GUD or gdb side, but I don't know. >> At least, the above differences explain why completion in *gdb* >> buffer behaves differently between Emacs 22 and 23. > 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