RepublicWorried · 2022-10-26 11:53
In Emacs 29 it is possible to define a Gdb Default Window Configuration File to customize the window layout of gdb many windows.
​
How does such a file has to look like? I cannot find any example anywhere
mickeyp · 2022-10-26 15:02
Yes, see here:
https://www.gnu.org/software/emacs/manual/html_node/emacs/GDB-User-Interface-Layout.html
darcamo · 2022-10-27 02:32
It's already in Emacs 28. Just activate `gdb-many-windows` in a gdb section. Change the layout as you like (divide windows, etc), then call `gdb-save-window-configuration` to save the configuration to a file. You can load it with `gdb-load-window-configuration`. The `gdb-default-window-configuration-file` variable is just a way to load a configuration file on startup.
RepublicWorried · 2022-10-27 05:35
Thanks. And the save command should be invoked with a gdb hook?