> If the problem is in gud.el, then we must think about the other users > of that code, like "M-x gud-gdb". gdb-display-source-buffer is > specific to gdb-mi.el. And I see that as part of your patch you've > removed the test of gud-minor-mode being gdbmi, which is probably not > TRT. Fixed, please see source-window.patch. > Also, what happens if the function into which you step is already > displayed in some other window? Maybe we can modify `gdb-display-source-buffer` to handle that. But I’m not sure if that won’t interfere with other stuff. What do you think? Yuan