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: GUD/GDB in emacs Date: Fri, 18 Jul 2008 08:46:15 +1200 Message-ID: <18559.44951.183449.270835@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 1216329334 27728 80.91.229.12 (17 Jul 2008 21:15:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2008 21:15:34 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Richard G Riley Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 17 23:16:20 2008 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 1KJapl-0002da-Pf for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jul 2008 23:16:18 +0200 Original-Received: from localhost ([127.0.0.1]:49887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJaot-0007rf-5W for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jul 2008 17:15:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJaoa-0007qL-NU for help-gnu-emacs@gnu.org; Thu, 17 Jul 2008 17:15:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJaoZ-0007pc-0K for help-gnu-emacs@gnu.org; Thu, 17 Jul 2008 17:15:04 -0400 Original-Received: from [199.232.76.173] (port=39443 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJaoY-0007pZ-NI for help-gnu-emacs@gnu.org; Thu, 17 Jul 2008 17:15:02 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.25]:52748) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJaoY-0004GE-Jt for help-gnu-emacs@gnu.org; Thu, 17 Jul 2008 17:15:02 -0400 Original-Received: from kahikatea.snap.net.nz (191.63.255.123.dynamic.snap.net.nz [123.255.63.191]) by viper.snap.net.nz (Postfix) with ESMTP id 15CDB2F4D9F; Fri, 18 Jul 2008 08:46:33 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 2A6718FC6D; Fri, 18 Jul 2008 08:46:17 +1200 (NZST) Original-Newsgroups: gnu.emacs.help 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: 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:55680 Archived-At: > > I'm not sure what you mean exactly. Maybe expand a node in situ in the > > locals buffer, for example. > > That would seem the obvious solution and is the case in other IDEs. e.g > you see "p" in the locals (where p is a pointer to a struct for example) > and then can see the struct by double clicking it for example. Pretty > much what the speedbar does but without the speed bar. I think Insight does this but ISTR Totalview uses a separate frame. Expanding in situ makes it harder to find the other locals. In fact I'm thinking of using a separate frame for each watch expression, something which isn't really possible with the speedbar. This would be helpful for arrays and large structures. > (As an aside, if > I mouseclick 2 on a local in the locals buffer then its added to the > speedbar as a watch - it would be more consistent I think if "watch p" > from the gdb command line also did the same if the speedbar is in use, > what do you think?). The GDB command "watch" means something else (it sets watchpoint, rather than creating a "watch expression"). Watch expressions are created using something GDB calls "Variable Objects" and they are created using GDB/MI commands intended for the frontend only. I'm not sure that there is much benefit in making this functionality available to the command line. Note if you want to supply an argument for a watch expression, you can do C-u C-c C-w from the GUD buffer or C-u C-x C-a C-w from any other. -- Nick http://www.inet.net.nz/~nickrob