How to save gdb trace in the same emacs element

I use GDB in Emacs 23.2, and although I mostly like it, there is one thing that I find very annoying. When you go through the code, if I trace to a function that is in the source module, which is already in the Emacs buffer and, apparently, is displayed in a different frame, this frame goes up and the step continues. Is there a way to get gud to just make this buffer visible in the current gdb frame and save it as an active frame?

+4
source share
1 answer

I had the same problem. The only way I've dealt with so far is to close the other frames, so everything appears in the GDB frame, but this is a terrible workaround. I did a pretty serious search in documents and stackoverflow and found these settings ...

I hope they help.

+2
source

Source: https://habr.com/ru/post/1332823/