User forums > Using Code::Blocks

C::B debug (gdb) remove Console of my host application

<< < (4/4)

ollydbg:

--- Quote from: oBFusCATed on June 18, 2011, 01:31:22 am ---The log window has some refresh problems on windows, the messages are almost "realtime".
You have to scroll up-down, so the log window can be refreshed correctly...

--- End quote ---
This is an annoying behavior I have encountered for several years. :D
I have no idea how to solve this. :(

oBFusCATed:

--- Quote from: kccheng on June 21, 2011, 06:00:02 am ---I don't think this is correct behavior.  The "\n" in printf() should cause auto flush.
Could this be improved in the future ?

--- End quote ---
Can you quote the standard, where you've read this?

kccheng:

--- Quote from: oBFusCATed on June 21, 2011, 08:53:46 am ---
--- Quote from: kccheng on June 21, 2011, 06:00:02 am ---I don't think this is correct behavior.  The "\n" in printf() should cause auto flush.
Could this be improved in the future ?

--- End quote ---
Can you quote the standard, where you've read this?

--- End quote ---

I don't have any standard in hand and don't remember where I got this understanding.
After a quick search of my books ... I found something related to this in
W.Richard Stevens' famous book "Advanced Programming in the UNIX Env."
Ch. 5.4 Buffering

Well, I think maybe it's not printf's standard.  Be correctly, the stdout and stderr
are line buffered I/O stream.  So, the question becomes:

Since C::B Debug log console will capture stdout/stderr from debuggee ...
does C::B Debug log console should also behave like a line buffered I/O stream ?
so the debuggee can have similar expectation with/without C::B.

Regards,
KC

oBFusCATed:

--- Quote from: kccheng on June 21, 2011, 09:46:02 am ---Since C::B Debug log console will capture stdout/stderr from debuggee ...
does C::B Debug log console should also behave like a line buffered I/O stream ?
so the debuggee can have similar expectation with/without C::B.

--- End quote ---
The log is line buffered I think. Take a look at PipedProcess if you don't believe me.

Navigation

[0] Message Index

[*] Previous page

Go to full version