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: Thu, 17 Jul 2008 02:11:58 +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 1216255246 23436 80.91.229.12 (17 Jul 2008 00:40:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2008 00:40:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 17 02:41:34 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 1KJHYq-0001va-3x for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jul 2008 02:41:32 +0200 Original-Received: from localhost ([127.0.0.1]:41806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJHXx-0000Ac-Jj for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jul 2008 20:40:37 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!newsfeed.straub-nv.de!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-X-Trace: feeder.motzarella.org U2FsdGVkX1+rvYpOlyOapZcuuNldjTHI3j7eZdGOIHUvWHC3iI0SKzdxPvWMc25zzz9NZc1kVfaWvmLOGmci8OTGpF+LG+cUt0tE4twGpbi256jKLGahGq80WG8yNaEEtmu5+cY2hMfIJFPag3KK6Q== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Thu, 17 Jul 2008 00:12:02 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+oDxnbjGGH0SCJt+9Qmjng/O1fVKMwY3h60XSQ/oqxiA== Cancel-Lock: sha1:2iyug/zUerwGYyg+RF8idxbX4pY= User-Agent: Emacs 22.2.1/No Gnus v0.11 Original-Xref: news.stanford.edu gnu.emacs.help:160317 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:55668 Archived-At: Nick Roberts writes: > > When using GUD, can one embed a dereference into one of the panes? > > 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. (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?). > > > Currently I can only see *p, for example, if I make it a watch point and > > enable the speedbar which is a horrendous waste of screen real > > estate. > > If ECB gets integrated into Emacs, I plan to use tree-buffer.el for watch > expressions instead of the speedbar but I think that they will always need > their own buffer. A tree view would be nice in the locals pane or a special watch pane. > > > Sure I can "display *p" in the *gud* buffer but thats pretty > > horrible since it all scrolls past. Any hints or tips and/or references > > to good GUD tutorials appreciated. > > I think some debuggers use tooltips to expand expressions but I'm not sure > how that works. Some do, but they are not convenient or "static" enough. If I have a pointer in a loop and step around the loop I would like, reasonably enough I think, to see the pointed to structure change as "p" changes or its dereferenced contents change. Certainly a tooltip is not the best for a struct of more than one or two elements.