From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs doesn't show printf() output during debugging. Date: Wed, 17 Aug 2005 21:18:28 +0300 Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1124303202 13611 80.91.229.2 (17 Aug 2005 18:26:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2005 18:26:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 17 20:26:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E5Sag-0006TE-PO for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Aug 2005 20:24:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5SeA-00077d-J6 for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Aug 2005 14:28:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E5SdC-0006lQ-39 for help-gnu-emacs@gnu.org; Wed, 17 Aug 2005 14:27:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E5Sd4-0006hp-68 for help-gnu-emacs@gnu.org; Wed, 17 Aug 2005 14:27:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5Sd2-0006ca-L9 for help-gnu-emacs@gnu.org; Wed, 17 Aug 2005 14:27:09 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E5SkR-0008IC-LY for help-gnu-emacs@gnu.org; Wed, 17 Aug 2005 14:34:47 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-201-205.inter.net.il [83.130.201.205]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id CDL31560 (AUTH halo1); Wed, 17 Aug 2005 21:18:27 +0300 (IDT) Original-To: help-gnu-emacs@gnu.org In-reply-to: (rolexletter@hotmail.com) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28791 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28791 > From: "Lao JM" > Date: Wed, 17 Aug 2005 13:05:57 +0000 > > When I debug my C program, I can't see the printf() output in any buffer. > However, I can provide input to scanf() in the GUD buffer. What should > I do to show the output? I am using Emacs 21.3.50.1 (CVS) on Windows2000. What port of GDB is that? Also, is it possible that your program doesn't fflush the standard output after it calls printf? I think redirecting stdout to a pipe changes its buffering, so without fflush the characters may stay buffered longer than with the console.