From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: gdb-ui, dedicated windows Date: Tue, 08 Jul 2008 16:18:26 +0900 Message-ID: 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> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215501535 29169 80.91.229.12 (8 Jul 2008 07:18:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jul 2008 07:18:55 +0000 (UTC) Cc: David Hansen , emacs-devel@gnu.org To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 08 09:19:41 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 1KG7UD-0005pw-CK for ged-emacs-devel@m.gmane.org; Tue, 08 Jul 2008 09:19:41 +0200 Original-Received: from localhost ([127.0.0.1]:59968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KG7TL-0000VV-Sr for ged-emacs-devel@m.gmane.org; Tue, 08 Jul 2008 03:18:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KG7TG-0000RL-1v for emacs-devel@gnu.org; Tue, 08 Jul 2008 03:18:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KG7TE-0000NK-0m for emacs-devel@gnu.org; Tue, 08 Jul 2008 03:18:41 -0400 Original-Received: from [199.232.76.173] (port=53668 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KG7TD-0000N1-S6 for emacs-devel@gnu.org; Tue, 08 Jul 2008 03:18:39 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:40369) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KG7T7-0003a8-D3; Tue, 08 Jul 2008 03:18:33 -0400 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.193]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KG7T5-0003mO-Q7; Tue, 08 Jul 2008 03:18:32 -0400 Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m687IR5u012363; Tue, 8 Jul 2008 16:18:27 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.24] [10.29.19.24]) by relay21.aps.necel.com with ESMTP; Tue, 8 Jul 2008 16:18:27 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay21.aps.necel.com with ESMTP; Tue, 8 Jul 2008 16:18:27 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id DE99A4AC; Tue, 8 Jul 2008 16:18:26 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: (Miles Bader's message of "Tue, 08 Jul 2008 16:06:22 +0900") Original-Lines: 41 X-detected-kernel: by mx20.gnu.org: Solaris 8 (1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:100446 Archived-At: I wrote: >> I still can't reproduce this, or Miles' problem whrere gdb-ui will hide the gdb >> buffer as a side-effect of popping up the source buffer (which may be a >> consequence of the GUD buffer _not_ being in a dedicated window. > ... >> OK, I've just tried using gdb-ui without making windows dedicated and not >> noticed any degradation in performance. Maybe dedicating the windows is >> historical and isn't needed now windows are split more readily. It's really >> just evolved from my arbitrary personal use. If you want to submit a patch and >> others, e.g., Miles, think it's an improvement, I'll be happy to install >> it. > > I'm not sure what's going on really -- the window doesn't seem to be > dedicated. I'm not sure if I am using the same setup as other people, I > just say "M-x gdb" to invoke gdb, and get, initially, just a single > *gud...* buffer. 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... :-( -Miles -- Carefully crafted initial estimates reward you not only with reduced computational effort, but also with understanding and increased self-esteem. -- Numerical methods in C, Chapter 9. "Root Finding and Nonlinear Sets of Equations"