Here is an updated patch for store-window feature. I fixed some problem of the last one and added some new features. With this patch, you can
1. store your window configuration to a file, and load it back in a gdb session, and
2. set a default window config file to be loaded on gdb startup.
3. Now gdb preserves the window configuration you had before starting gdb
More about 3.: currently when gdb quits, it leaves you with two windows, one in gdb comint buffer and one in source buffer, regardless of what you had before staring gdb. The third commit in the patch makes gdb restore the old window configuration you had before staring gdb.
I also attached my window configuration file as default-rearrange.
Yuan