From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: How to customize GDB-UI layout ? Date: Sun, 25 Jan 2009 10:32:46 +1300 Message-ID: <18811.35070.383661.947973@kahikatea.snap.net.nz> References: 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 1232832805 7337 80.91.229.12 (24 Jan 2009 21:33:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Jan 2009 21:33:25 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Francis Moreau Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 24 22:34:38 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LQq9F-0004Js-MR for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Jan 2009 22:34:37 +0100 Original-Received: from localhost ([127.0.0.1]:59729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQq7x-0005up-Vy for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Jan 2009 16:33:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQq7g-0005te-1J for help-gnu-emacs@gnu.org; Sat, 24 Jan 2009 16:33:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQq7e-0005sp-94 for help-gnu-emacs@gnu.org; Sat, 24 Jan 2009 16:32:59 -0500 Original-Received: from [199.232.76.173] (port=45062 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQq7e-0005sa-0i for help-gnu-emacs@gnu.org; Sat, 24 Jan 2009 16:32:58 -0500 Original-Received: from viper.snap.net.nz ([202.37.101.23]:38881) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LQq7d-0004RB-Ix for help-gnu-emacs@gnu.org; Sat, 24 Jan 2009 16:32:57 -0500 Original-Received: from kahikatea.snap.net.nz (27.60.255.123.dynamic.snap.net.nz [123.255.60.27]) by viper.snap.net.nz (Postfix) with ESMTP id 749313DA870; Sun, 25 Jan 2009 10:32:52 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 10A638FC6D; Sun, 25 Jan 2009 10:32:47 +1300 (NZDT) Original-Newsgroups: gnu.emacs.help In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.3.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61614 Archived-At: > I'm using 'M-x gdb' as GDB interface with 'gdb-many-windows' set to > 't'. > > I'd like to customize the default layout which is: > > +--------------------------------+--------------------------------+ > | GUD buffer (I/O of GDB) | Locals buffer | > |--------------------------------+--------------------------------+ > | Primary Source buffer | I/O buffer for debugged pgm | > |--------------------------------+--------------------------------+ > | Stack buffer | Breakpoints buffer | > +--------------------------------+--------------------------------+ > > For example, I'd like to switch the I/O buffer and the GUD one. > > Is This possible ? No, but it would be quite easy to edit the gdb-setup-windows to do this. > Also can the locals buffer can show the current function parameters as > well ? No, but there is an MI command that can do this. Currently all the frames arguments can be seen in the stack buffer. This is quite expensive to compute and when emacs migrates to MI they won't be available there. So, in the future those of the current frame will probably be added to the locals buffer as you suggest. -- Nick http://www.inet.net.nz/~nickrob