I know I can open a new frame and M+xgdb. But just doing M+xgdb and having gdb executed in a new frame would be much better.
gdb-many-windows destroy original windows layout when I run it and it can not restore the layout when I kill it. So I want to run it in a new frame and close that frame.
Update: I use (setq gdb-many-windows t). If I invoke gdb, it uses the gdb-many-windows layout automatically.
Here is a simple function to call gdb with many windows in a newly created frame:
(defun my-gdb-other-frame ()
(interactive)
(select-frame (make-frame))
(call-interactively 'gdb))
Another way I use to solve the window layout problem with gdb-many-windows is to save the different windows configurations to registers. FWIW, here is my workflow:
C-xrwa (save window configuration to register a)
M-xgdbRET
M-xgdb-many-windowsRET
C-xrwb (save the new window configuration to register b)
Afterwards, I can jump from one window layout to the other using C-xrja and C-xrjb
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With