Using gdb in emacs, gdb shows the source code to the right of the gdb prompt.
According to the documentation, I can do
M-x gdb-display-locals-buffer which displays the local variables.
However, when I do that, the locals buffer replaces the source buffer. Is there a way for to tell gdb to open the locals buffer somewhere else? So that it doesn't overwrite the source buffer?
Thanks in advance!
PS: Bonus question, what is the difference between gdb and gud-gdb? Can I get the locals buffer using gud?