From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Suggestion for gdb-ui.el Date: Wed, 1 Jun 2005 09:40:56 +1200 Message-ID: <17052.55784.138439.629172@farnswood.snap.net.nz> References: <1117534403.15206.4.camel@localhost.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1117576938 22313 80.91.229.2 (31 May 2005 22:02:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 May 2005 22:02:18 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 01 00:02:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DdEmb-0001z5-Si for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2005 00:00:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdErm-0006NT-5W for ged-emacs-devel@m.gmane.org; Tue, 31 May 2005 18:05:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DdEnk-0005Fo-9J for emacs-devel@gnu.org; Tue, 31 May 2005 18:01:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DdEne-0005DA-Vc for emacs-devel@gnu.org; Tue, 31 May 2005 18:01:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdEnc-00053G-P8 for emacs-devel@gnu.org; Tue, 31 May 2005 18:01:25 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DdEdc-0007nY-6e for emacs-devel@gnu.org; Tue, 31 May 2005 17:51:04 -0400 Original-Received: from farnswood.snap.net.nz (p181-tnt1.snap.net.nz [202.124.110.181]) by viper.snap.net.nz (Postfix) with ESMTP id D8C1653893C; Wed, 1 Jun 2005 09:48:45 +1200 (NZST) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 501) id CCEC562A9A; Tue, 31 May 2005 22:40:56 +0100 (BST) Original-To: Albert Veli In-Reply-To: <1117534403.15206.4.camel@localhost.localdomain> X-Mailer: VM 7.19 under Emacs 22.0.50.64 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:37971 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37971 > My inline asm uses the SSE floating point registers xmm0-xmm7. > Space toggles between "info registers" and "info all-registers" > mode in the *registers* buffer (M-x gdb-display-registers-buffer). > When all registers are shown they dont fit in the *registers* > buffer so I scroll down a bit to the xmm registers. But after each > stepi (step one instruction) the *registers* buffer scrolls > back to the Top again. > > * Suggestion: Update lisp/progmodes/gdb-ui.el so the *registers* buffer > somehow remembers the line number and scrolls back to the same line > after updating the registers. The code was meant to do this but didn't because of an issue with point and window point. If you update from the repository this should work now. > It would also be nice if the changed registers would be highlighted > somehow (I noticed it's on the TODO list in gdb-ui.el). This shouldn't be too hard to do with the GDB/MI commands. I have other changes that also use GDB/MI but I am waiting till after the release before installing them in case such changes introduce bugs. How useful is this feature? I've not done low-level debugging or watched the contents of the registers. What debugging situations require this? Are you debugging a disassembly view in GDB from C code, or assembler (either generated by the compiler or hand written) directly. > * Small bug: It is not possible to click two times on the same icon in > the gdb-ui toolbar (for instance next or stepi) without first moving the > mouse cursor outside the icon. Emacs was configured with --with-gtk and > I dont know if the bug exists with other toolkits. I tried it on > both Debian/Sarge (XFree86 4.3.0) and on Ubuntu/Hoary (X.org 6.8.2). > They both have the same GTK+ version (2.6.4). I've not seen this with Mandrake 9.0. It might be because I've been fiddling with the code that displays disassembly. Perhaps Jan Djarv knows if it's a GTK problem. Nick