I am using emacs 25.1 and gdb 7.12 now. but when I run "M-x gdb -i=mi a.out",then set break point and issue next command, a source code window alway popup to get focus, then if I want to issue next command again, I have to switch to the gdb window firstly, otherwise, keyboard input will be direct to the source code file.
We should keep focus on the gdb window rather than switch focus to the source code window.
Am I wrong to use this gdb mode? BTW,gud-gdb mode works fine.
gdb-many-windowsmode (i.e., whengud-gdbis set to show only the command buffer and the source buffer which I think is the most convenient mode when screen estate is limited) but, unfortunately, I can't seem to find a way to systematically trigger it: at some point the focus becomes confused and then a simplerunornextcommand suddenly appear in the source buffer instead of the command buffer. I set the bounty in the hope that someone knowledgeable has found why this annoying behavior arises and how to solve it.