2

I am using emacs and gdb together. Everytime I issue gdb-many-windows I get the following buffer open up.

 |   GUD buffer (I/O of GDB)      |   Locals/Registers buffer      |

 |   Primary Source buffer        |   I/O buffer for debugged pgm  |

 |   Stack buffer                 |   Breakpoints/Threads buffer   |

This is great. But because I need to dig through the code and since I have multiple monitors. I was hoping to keep the Primary source buffer (source code debugged) to be in a separate window. And the rest of the other four buffers show up in a different window together.

For example, in window 1, I will have

 |   Primary Source buffer        |  

in window 2 , I will have

 |   GUD buffer (I/O of GDB)       |   Locals/Registers buffer      |
 |                                 |   I/O buffer for debugged pgm  |
 |                                 |  Breakpoints/Threads buffer    |
 |                                 |   Stack buffer                 | 

How Can I do that? I also would like this to be default, everytime I open up gdb-many-windows. Thanks

2
  • Did you ever figure out a satisfactory solution to this? I really would like to have something like this too. Also, GDB/GUD seems to also assign source buffers over existing GDB windows like local stack, the comint buffer, etc when I click on source files in the callstack window. This makes using GUD a really painful experience. Commented Oct 8, 2014 at 9:29
  • Sorry @Nurpax , I am yet to find any real solutions to this... Commented Feb 11, 2016 at 18:35

1 Answer 1

1

In emacs a window is the view that contains the buffer. What you want to do is create a new frame to show the other buffers in. You can create a new frame by running M-x new-frame or you can do C-x 5 b source-code-buffer-name and it will open the source code in another frame. There is also C-x 5 o to switch between the frames.

I know this is not exactly what you are asking, but it can be the starting point for some elisp scripting to get this to where you want. To get to know more about frames. To get to know more about frames in emacs you can go to https://www.gnu.org/software/emacs/manual/html_node/emacs/Frames.html#Frames .

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.