From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Toolbar problems with GDB mode. Date: Fri, 3 Jan 2003 23:09:47 +0100 (MET) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200301032305.h03N5hdw022091@stubby.bodenonline.com> References: <15893.60667.854973.199903@nick.uklinux.net> 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 1041632142 25423 80.91.224.249 (3 Jan 2003 22:15:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 3 Jan 2003 22:15:42 +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 18Ua6L-0006bK-00 for ; Fri, 03 Jan 2003 23:15:37 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18Ua98-0005VB-00 for ; Fri, 03 Jan 2003 23:18:31 +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 18Ua54-0007VK-03 for emacs-devel@quimby.gnus.org; Fri, 03 Jan 2003 17:14:18 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18Ua4K-0007HS-00 for emacs-devel@gnu.org; Fri, 03 Jan 2003 17:13:32 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18Ua1A-0006il-00 for emacs-devel@gnu.org; Fri, 03 Jan 2003 17:10:18 -0500 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Ua18-0006bz-00 for emacs-devel@gnu.org; Fri, 03 Jan 2003 17:10:14 -0500 Original-Received: from accessno42.bodenonline.com (IDENT:root@accessno42.bodenonline.com [193.201.16.44]) h03N5hdw022091; Sat, 4 Jan 2003 00:05:43 +0100 Original-To: nick@nick.uklinux.net (Nick Roberts) In-Reply-To: <15893.60667.854973.199903@nick.uklinux.net> from "Nick Roberts" at jan 03, 2003 08:05:15 X-Mailer: ELM [version 2.5 PL0pre8] 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:10443 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10443 > > 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 see that the GUD menu also hangs around after quitting gdb. Well, I don't know if they are gdb (the program) problems or gdba (the mode) problems. I just upgraded gdb to 5.2.1. For example, I do: M-x gdba Run gdba (like this): gdb -annotate=2 emacs (The -annotate=2 is put there by gdba). Then the .gdbinit puts two breakpoints, nr 2 in emacs.c and gdba loads that file. This is kind of annoying since I had the file I wanted to debug visible, but now it is buried. But this is not the big bug. If I go to a C file and do C-x C-v C-a (set breakpoint), here is what the *gud-emacs* buffer prints: breakpoint keep y 0x0810585c in abort at emacs.c:412 2 breakpoint keep y 0x080db76f ---Type to continue, or q to quit--- in x_error_quitter at xterm.c:12727 I typed return at "quit---" No break point is set. This "--- Type ..." pops up at a lot of places, for example when running the program: (gdb) r Starting program: /home/jhd/src/emacs-gtk/src/emacs -geometry 80x40+0+0 Breakpoint 4, main (argc=3, argv ---Type to continue, or q to quit--- arg-name-end =0xbffff434) at emacs.c:781 (gdb) > > > 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: How can (kill-local-variable 'tool-bar-map) kill buffers? > (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. Is gdb-quit supposed to be run manually? It is not run if I type q at the (gdb) prompt. > 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... When you wan't to see the source in a context, it is better that the command line. Jan D.