bug-gdb
[Top][All Lists]
Advanced

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

Flushing the buffer in GDB


From: sunil
Subject: Flushing the buffer in GDB
Date: Tue, 24 May 2011 20:00:03 -0000
User-agent: G2/1.0

Hi Team,

If I am using the printf/cout statements with '\t' (tab) characters
the debugger will not print after the executing the respective
statement.
Is there any option to flush out the buffer and make printable on the
GDB console.

For example:

------------------
(gdb)   cout<<"Sunil"<<\t";
(gdb)  i=1;
-------------

Here the GDB is not printing the output on the GDB console. Because it
is stored in the beffer and it is not flushed out.
So is there any way to print the above output in the GDB console other
than using the "endl" (new line)  in the program.

Regards
Sunil




reply via email to

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