[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs gdb interface

From: Alberto Luaces
Subject: Re: Emacs gdb interface
Date: Wed, 21 Mar 2012 09:54:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]