From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.windows,gmane.emacs.help Subject: Re: Emacs gdb interface Date: Wed, 21 Mar 2012 21:09:52 +0100 Message-ID: References: <83ehsl23fa.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1332360609 30061 80.91.229.3 (21 Mar 2012 20:10:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2012 20:10:09 +0000 (UTC) Cc: help-emacs-windows@gnu.org, help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-emacs-windows-bounces+gnu-help-emacs-windows=m.gmane.org@gnu.org Wed Mar 21 21:10:08 2012 Return-path: Envelope-to: gnu-help-emacs-windows@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SARrE-0000NW-0N for gnu-help-emacs-windows@m.gmane.org; Wed, 21 Mar 2012 21:10:08 +0100 Original-Received: from localhost ([::1]:40901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SARrD-0002dQ-3i for gnu-help-emacs-windows@m.gmane.org; Wed, 21 Mar 2012 16:10:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SARr3-0002c8-DS for help-emacs-windows@gnu.org; Wed, 21 Mar 2012 16:10:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SARr1-0000Gf-Oj for help-emacs-windows@gnu.org; Wed, 21 Mar 2012 16:09:56 -0400 Original-Received: from mail-yw0-f41.google.com ([209.85.213.41]:47821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SARr1-0000G0-Hx; Wed, 21 Mar 2012 16:09:55 -0400 Original-Received: by yhr47 with SMTP id 47so1560545yhr.0 for ; Wed, 21 Mar 2012 13:09:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2IQ0HVPte5y7wEn4R2jUub3/6nY5elvwZsddfPKbOj0=; b=GkBFr5d5ibz+tVIbZNe9wMuYjtFK4CvpgpgsYDdhrsDxpJdRJk4aC9tciLP5VdwVeJ p0sPhaPOfRzEl1qRmxSPcm5pw49+MyQwT+BuCT0wK7+vkxZRnrWZJy+G11s83WPDCrk0 eTZLZAAlsJnjnfqjKbKqVSj8rQ98cRy8ZLwEoMUhbdnIpxLahRZ1/kKtATwewNy0miYQ CTDKvo5rWr6oRbojMyOfxwY7Ypp0VRFQeSxAZpMjBy4KQ3HeblCKjmjqBE0sq9AMcDGw vxXD1flM5zA8V8VHugaqKZPVF9p529B4gquxEu/y5ZTIe29Yow4j8XZ4fG+m41xRqboW v1oQ== Original-Received: by 10.60.27.170 with SMTP id u10mr6499586oeg.50.1332360592776; Wed, 21 Mar 2012 13:09:52 -0700 (PDT) Original-Received: by 10.60.42.193 with HTTP; Wed, 21 Mar 2012 13:09:52 -0700 (PDT) In-Reply-To: <83ehsl23fa.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.41 X-BeenThere: help-emacs-windows@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion forum for users of the GNU Emacs port to Windows List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-emacs-windows-bounces+gnu-help-emacs-windows=m.gmane.org@gnu.org Original-Sender: help-emacs-windows-bounces+gnu-help-emacs-windows=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.windows:5320 gmane.emacs.help:84080 Archived-At: > If you add the newline, the output appears at the end, but not in the > input/output buffer. > > If there's no newline, I wouldn't expect the output to appear at all, > in such a short program, since standard output redirected to pipes is > fully-buffered on Windows, not line-buffered as on Posix systems. Ok, I understand that Emacs can't show the output until it is flushed, but when it is, as (for example) in this case: -------- main.c ------------- #include int main(void) { printf("hello, world!\n"); fflush(stdout); return 0; } ----------------------------- The output should not be shown in the *gud* buffer (as happens now), but in the *input/output* one, no? If not, what's that *input/output* buffer for? -- Dani Moncayo