From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: gdb-ui, dedicated windows Date: Wed, 9 Jul 2008 11:39:04 +1200 Message-ID: <18547.64152.956371.924404@kahikatea.snap.net.nz> References: <87zlowwyn1.fsf@localhorst.mine.nu> <18543.18102.11098.763936@kahikatea.snap.net.nz> <87vdzkwqlr.fsf@localhorst.mine.nu> <18545.40372.978280.247737@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215560376 13739 80.91.229.12 (8 Jul 2008 23:39:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jul 2008 23:39:36 +0000 (UTC) Cc: David Hansen , emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 09 01:40:22 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KGMnC-0005Nc-6N for ged-emacs-devel@m.gmane.org; Wed, 09 Jul 2008 01:40:18 +0200 Original-Received: from localhost ([127.0.0.1]:39361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGMmK-0006RJ-RP for ged-emacs-devel@m.gmane.org; Tue, 08 Jul 2008 19:39:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KGMmG-0006R4-Aa for emacs-devel@gnu.org; Tue, 08 Jul 2008 19:39:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KGMmD-0006Qs-Um for emacs-devel@gnu.org; Tue, 08 Jul 2008 19:39:19 -0400 Original-Received: from [199.232.76.173] (port=56978 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGMmD-0006Qp-Pu for emacs-devel@gnu.org; Tue, 08 Jul 2008 19:39:17 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.25]:37522) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KGMm9-0006zQ-3x; Tue, 08 Jul 2008 19:39:13 -0400 Original-Received: from kahikatea.snap.net.nz (173.61.255.123.dynamic.snap.net.nz [123.255.61.173]) by viper.snap.net.nz (Postfix) with ESMTP id 511AA3DA6D0; Wed, 9 Jul 2008 11:39:07 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 1169C8FC6D; Wed, 9 Jul 2008 11:39:05 +1200 (NZST) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.2.50.3 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:100469 Archived-At: > 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