From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard G Riley Newsgroups: gmane.emacs.help Subject: Re: GUD/GDB in emacs Date: Fri, 18 Jul 2008 10:30:45 +0200 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216370493 28746 80.91.229.12 (18 Jul 2008 08:41:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jul 2008 08:41:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 18 10:42:21 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 1KJlXg-00064T-UJ for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jul 2008 10:42:21 +0200 Original-Received: from localhost ([127.0.0.1]:38452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJlWo-0002oa-6U for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jul 2008 04:41:26 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 57 Original-X-Trace: feeder.motzarella.org U2FsdGVkX18s4hMpI7Z7iXkx3Ep+/kAEA5LVesH/pjY4/6uWCwe1S/NSjPXxwlD0KCmPXyzfJdtEJiGNjnsz/Nt18kRWXxqHiDptcWq4NeJEHSkiJ633OoVucIinQc88CFsbnHwdjBSHbH5lsRC5ew== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Fri, 18 Jul 2008 08:30:47 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+z+I0NCJddFhgpH1YAS/JxW3n3lj+Sz/zEnkdzBsWwkA== Cancel-Lock: sha1:dR5FLK1pAQUBLYMlM1vXcZrNV5o= User-Agent: Emacs 22.2.1/No Gnus v0.11 Original-Xref: news.stanford.edu gnu.emacs.help:160352 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:55700 Archived-At: Nick Roberts writes: > > > 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 I'm not familiar with these things. They are Emacs packages? > in situ makes it harder to find the other locals. In fact I'm > thinking of Expand, shrink. They only impede if you expand them. If you expand them they are expanded for a reason generally. But as you point out below the vocab we are using (because of what is there) can confuse us. "Watch" in this case is the only apparent way to expand a pointer to a struct. We should really just be discussing how to view a dereferenced pointer - DDD does this quite nicely. But being an Emacs convert it would be nice to have the same, or similar, in the GUD interface. > 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. A separate frame for each expression would be a collossal waste of screen real estate and possibly worse than the current speed bar implementation IMO. > > > (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. I think I agree that yes, this is how it is at the moment. I'm just getting familiar with it but the bottom line, for me, is that the inability to easily see the contents of a pointed to struct (and I am admittedly talking C here), is a major limitation in the otherwise excellent emacs interface to GDB.