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: Toolbar problems with GDB mode. Date: Fri, 3 Jan 2003 20:05:15 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <15893.60667.854973.199903@nick.uklinux.net> References: <3E15CD7A.90802@swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1041624506 23774 80.91.224.249 (3 Jan 2003 20:08:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 3 Jan 2003 20:08:26 +0000 (UTC) Cc: emacs devel Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18UY75-0006AT-00 for ; Fri, 03 Jan 2003 21:08:15 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18UY9q-0004EM-00 for ; Fri, 03 Jan 2003 21:11:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18UY6N-0008Gy-0C for emacs-devel@quimby.gnus.org; Fri, 03 Jan 2003 15:07:31 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18UY67-00081b-00 for emacs-devel@gnu.org; Fri, 03 Jan 2003 15:07:15 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18UY64-0007xw-00 for emacs-devel@gnu.org; Fri, 03 Jan 2003 15:07:13 -0500 Original-Received: from bts-0888.dialup.zetnet.co.uk ([194.247.51.120] helo=nick.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18UY62-0007rx-00 for emacs-devel@gnu.org; Fri, 03 Jan 2003 15:07:10 -0500 Original-Received: by nick.uklinux.net (Postfix, from userid 501) id 7F7CB76037; Fri, 3 Jan 2003 20:05:16 +0000 (GMT) Original-To: "Jan D." In-Reply-To: <3E15CD7A.90802@swipnet.se> X-Mailer: VM 6.97 under Emacs 21.3.50.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10441 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10441 Jan D. writes: > Hello. > > If a break point is reached in a C file, the file is displayed and the toolbar > changes to the GDB toolbar. When quitting gdb, the toolbar does not change > back. Not even if gdb-quit is run. > > I started GDB with M-x gdb. > > If I use M-x gdba it restores the menu bar OK, but gdba has so many other > problems, so I can't use it. > Hmm. I'm very aware that gdba doesn't auto-display complex data structures (arrays of structures or structures with arrays in) and plan to solve that when I can find the stamina. If you are more specific about other problems then I will try to solve them. > I think (kill-local-variable 'tool-bar-map) should be run even if > (eq gud-minor-mode 'gdba) is false in this function (gdb-ui.el): That will restore the toolbar but it will also kill any buffer whose name starts with `*'. I could replace: (if (eq gud-minor-mode 'gdba) with (if (memq gud-minor-mode '(gdb gdba)) which would do what you want. However, I wrote gdb-quit for gdba and I've not analysed what other consequences that might have. In my opinion, M-x gdb is quite limited. I'm guessing, but I bet most people on this list use gdb from the command line when they debug emacs. It has quite some nifty features that make it easier to use: completion of GDB command names, completion of user-defined procedure names, sometimes repeats the previous command (handy for stepping through the program or looking at a listing), readline interface etc, etc... Nick