News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

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

Started by kccheng, June 14, 2011, 09:23:55 PM

Previous topic - Next topic

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...
This is an annoying behavior I have encountered for several years. :D
I have no idea how to solve this. :(
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

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 ?
Can you quote the standard, where you've read this?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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 ?
Can you quote the standard, where you've read this?

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.
The log is line buffered I think. Take a look at PipedProcess if you don't believe me.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]