emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdb-ui, dedicated windows


From: Nick Roberts
Subject: Re: gdb-ui, dedicated windows
Date: Wed, 9 Jul 2008 11:39:04 +1200

 > Ah, actually I can reproduce it with "emacs -Q":
 > 
 >   (1) start a gdb session in emacs, and hit a breakpoint or something so
 >       that gdb pops up the source in another window (splitting the frame)
 > 
 >   (2) Switch to the source window with "C-x o"
 > 
 >   (3) Delete the other [*gud...*] window with "C-x 1"
 > 
 >   (4) Switch back to the *gud...* buffer using "C-x b *gud...* RET"
 > 
 >   (5) Try to pop up the source buffer again using a gdb command, e.g.,
 >       just "frame RET".
 > 
 > *bang*, *gdb...* buffer disappears, source buffer is only ting
 > displayed... :-(

OK.  When you do (4) you put the GUD buffer in the window that
gdb-source-window points to.  So when you do 'f' gdb-ui thinks the source
should go there.

I'm not sure what I can do as commands like switch-to-buffer are built-in.
Maybe some kind of hook in window-size-change-functions to keep gdb-ui
up-to-date.  Or perhaps having window groups would make it impossible to switch
the source buffer for the GUD buffer if they were assigned to different groups.

-- 
Nick                                           http://www.inet.net.nz/~nickrob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]