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: Re: Toolbar problems with GDB mode. Date: Sat, 4 Jan 2003 00:25:35 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <15894.10751.990342.816630@nick.uklinux.net> References: <15893.60667.854973.199903@nick.uklinux.net> <200301032305.h03N5hdw022091@stubby.bodenonline.com> 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 1041640177 23707 80.91.224.249 (4 Jan 2003 00:29:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 4 Jan 2003 00:29:37 +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 18UcBw-00069r-00 for ; Sat, 04 Jan 2003 01:29:32 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18UcEn-0006tu-00 for ; Sat, 04 Jan 2003 01:32:29 +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 18UcC4-00026S-00 for emacs-devel@quimby.gnus.org; Fri, 03 Jan 2003 19:29:40 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18UcBU-0001e3-00 for emacs-devel@gnu.org; Fri, 03 Jan 2003 19:29:04 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18UcAl-00016V-00 for emacs-devel@gnu.org; Fri, 03 Jan 2003 19:28:21 -0500 Original-Received: from bts-0442.dialup.zetnet.co.uk ([194.247.49.186] helo=nick.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Uc9y-0000rv-00 for emacs-devel@gnu.org; Fri, 03 Jan 2003 19:27:30 -0500 Original-Received: by nick.uklinux.net (Postfix, from userid 501) id 8562D76037; Sat, 4 Jan 2003 00:25:36 +0000 (GMT) Original-To: "Jan D." In-Reply-To: <200301032305.h03N5hdw022091@stubby.bodenonline.com> 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:10448 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10448 > I see that the GUD menu also hangs around after quitting gdb. This could go too if gdb-quit is modified appropriately (and moved into gud.el) > 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. The chances are about 99.9% that its with gdba. > 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. It doesn't load emacs.c because it has a breakpoint there but because thats where the execution starts. Thats standard practice for GUI debuggers. > 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: ... gdba requires that the screen size for GDB is unlimited. In emacs, TERM = dumb means that this is normally the case. I'm guessing you've got something in a .gdbinit file (possibly in your home directory) that says (something like): set height 24 You can recover from this by typing `set height 0' in the GUD buffer but its tidier if its not set initially. `show height' should then give: Number of lines gdb thinks are in a page is unlimited. and gdba should work properly. > Is gdb-quit supposed to be run manually? It is not run if I type q > at the (gdb) prompt. Yes. Its a command in emacs. The problem is communication GDB and emacs. Quite often emacs doesn't know what GDB is doing and thats what the annotations used in gdba are for. With quit the status of the sub-process (GDB) changes so perhaps I can hook gdb-quit up to that. I'll give it some thought. Nick