> setvbuf(stdin,NULL,_IONBF,0);> During the debugging,*What is the expected result?*
> fflush(stdout) after printf,
> All of the above didn't work, None output when debugging my application.In
> addition,I can not input values during debugging yet. for instance,
> 4...........i=0; // set breakpoint at this line
> It should suspend and wait IO buffer's input values. Then after I input a> *But in fact What happens instead?*
> value in IO buffer and press RET it resumed and stopped at line 4 ( it hit
> the breakpoint).
> It run and directly stopped at line 4 and didn't give me a chance to inputTry invoking GDB from Emacs like this:
> anything. I still input some values in io buffer and press RET but it
> didn't give me a response. It seems as if the debugger didn't recognize
> emacs' input/ouput IO buffer to be its input/output pipe and still kept
> waitting for input.
> This problem only appeared in emacs 24.1. Emacs 23.4 works very well
> without this problem.
M-x gud-gdb RET
If that doesn't help, either, then I'm clueless, sorry. Perhaps
someone else could help.