From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Emacs mode for GDB - 2 questions Date: Wed, 29 May 2002 15:19:11 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: <15604.58207.654159.768423@nick.uklinux.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1022682048 3551 127.0.0.1 (29 May 2002 14:20:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 29 May 2002 14:20:48 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17D4Jk-0000vA-00 for ; Wed, 29 May 2002 16:20:48 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17D4c5-0006NZ-00 for ; Wed, 29 May 2002 16:39:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17D4KE-0006BF-00; Wed, 29 May 2002 10:21:18 -0400 Original-Received: from dial-212-1-138-87.access.uk.tiscali.com ([212.1.138.87] helo=nick.uklinux.net) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17D4He-0005qC-00 for ; Wed, 29 May 2002 10:18:38 -0400 Original-Received: by nick.uklinux.net (Postfix, from userid 501) id F0BB076035; Wed, 29 May 2002 15:19:11 +0100 (BST) Original-To: emacs-devel@gnu.org X-Mailer: VM 6.97 under Emacs 21.1.1 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4486 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4486 I have updated the mode for Emacs, gdb.el, that I am writing. It acts as a GUI for gdb and I have reported it previously on this mailing list. Changes include : Two features adapted from gdb.el in XEmacs-21.4 : 1) A buffer to display expressions which is similar to the other buffers (locals, breakpoints etc) i.e based on gdba.el (`gud-frame-display-buffer' which can be found on the menu-bar under GDB-Frames) 2) A hypertext help buffer which uses the interactive help within gdb. This feature has never been part of gdba.el, as far as I know. and 3) Completion of gdb commands now works. 4) Numerous minor changes It can be downloaded from http://www.nick.uklinux.net and the current version will always be at gdbel.tgz. In relation to this work, I have two questions : 1) I wish to use the same icon for enabled and disabled breakpoints (like buttons on the toolbar that can be `greyed out' to show that they have been disabled). However : (insert-image '(image :file "/home/nick/circle.xpm" :type xpm) "breakpoint symbol") (insert-image '(image :file "/home/nick/circle.xpm" :type xpm :algorithm "laplace") "breakpoint symbol") (insert-image '(image :file "/home/nick/circle.xpm" :type xpm :algorithm 'laplace) "breakpoint symbol") all give the same result. Can someone please tell me what I am doing wrong ? 2) I want to format the displayed expressions more tidily. In particular I would like to show array slices and the header line would be a good place to do this e.g. ------------main::a [start:end:step]--------------- Where start, end and step are in editable fields. Could emacs be given this feature easily ? I guess a related question is does any body else see a need for this feature ? Nick