From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alberto Luaces Newsgroups: gmane.emacs.help Subject: Re: Emacs gdb interface Date: Wed, 21 Mar 2012 09:54:33 +0100 Message-ID: <8762dypc52.fsf@eps142.cdf.udc.es> References: <20120321075007.GF23207@discord.proulx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1332320105 16767 80.91.229.3 (21 Mar 2012 08:55:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2012 08:55:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 21 09:55:04 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1SAHJv-0002nP-V8 for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2012 09:55:04 +0100 Original-Received: from localhost ([::1]:34447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAHJv-0004wG-BQ for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2012 04:55:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAHJq-0004vt-O4 for help-gnu-emacs@gnu.org; Wed, 21 Mar 2012 04:54:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAHJk-0005Po-FA for help-gnu-emacs@gnu.org; Wed, 21 Mar 2012 04:54:58 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAHJk-0005PS-8D for help-gnu-emacs@gnu.org; Wed, 21 Mar 2012 04:54:52 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SAHJf-0002dH-8a for help-gnu-emacs@gnu.org; Wed, 21 Mar 2012 09:54:47 +0100 Original-Received: from pcmecanismos.eps.cdf.udc.es ([193.144.52.105]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Mar 2012 09:54:47 +0100 Original-Received: from aluaces by pcmecanismos.eps.cdf.udc.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Mar 2012 09:54:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pcmecanismos.eps.cdf.udc.es User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:F/E7dp27sj9PgCHBq29jamWOvKk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84062 Archived-At: Dani Moncayo writes: >> Please add a newline to the output.  I think that without the newline >> the output may be covered by other output.  I think it likely that the >> output is actually being output but just covered. >> >> -  printf("hello, world!"); >> +  printf("hello, world!\n"); > > If that was the case, it would cause a lot of confusion to users, but > fortunately, that's not the case (I've just tested it and I see no > output either). I also think it's a buffering issue. For me, it makes a difference to put the \n or not. It also happens if I put a fflush(0) statement after the printf(). Your unmodified example works for me if I run the program into gdb with the 'r' command. -- Alberto