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
gdbwith many windows in a newly created frame:Another way I use to solve the window layout problem with
gdb-many-windowsis to save the different windows configurations to registers. FWIW, here is my workflow:C-xrwa (save window configuration to register
a)M-x
gdbRETM-x
gdb-many-windowsRETC-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