views:

76

answers:

1

I love using GDB withing emacs. And I most like the configuration that I get with "gdb-many-windows", as seen here:

gdb-many-windows

That said, it's not perfect. I'd like to add a frame for showing the currently running threads. Does anyone know if it's possible to customize the configuration that "gdb-many-windows" gives you? Or, if I can't do that, is their a way to create my own frames AFTER gdb comes up automatically in my .emacs? My ideal setup would have threads, stack trace, local variables and a big source window.

+5  A: 

The window layout used by gdb-many-windows is apparently implemented in gdb-setup-windows. You advise that function to do addition work in setting up windows, like

(defadvice gdb-setup-windows (around setup-more-gdb-windows activate)
  ad-do-it
  (split-window-horizontally)
  (other-window 1)
  (gdb-set-window-buffer
    (gdb-get-buffer-create 'gdb-some-buffer-type)))
rafl