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: Toolbar problems with GDB mode. Date: Fri, 03 Jan 2003 18:50:50 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3E15CD7A.90802@swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1041616250 18332 80.91.224.249 (3 Jan 2003 17:50:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 3 Jan 2003 17:50:50 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18UVxz-0004ku-00 for ; Fri, 03 Jan 2003 18:50:43 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18UW0h-0002so-00 for ; Fri, 03 Jan 2003 18:53: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 18UVyV-0008T2-04 for emacs-devel@quimby.gnus.org; Fri, 03 Jan 2003 12:51:15 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18UVyE-0008Ou-00 for emacs-devel@gnu.org; Fri, 03 Jan 2003 12:50:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18UVyC-0008Oj-00 for emacs-devel@gnu.org; Fri, 03 Jan 2003 12:50:57 -0500 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18UVyB-0008Ly-00 for emacs-devel@gnu.org; Fri, 03 Jan 2003 12:50:55 -0500 Original-Received: from swipnet.se (accessno42.bodenonline.com [193.201.16.44]) by stubby.bodenonline.com (8.12.1/8.12.1) with ESMTP id h03IkOdw018105 for ; Fri, 3 Jan 2003 19:46:24 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910 X-Accept-Language: en-us, en Original-To: emacs devel 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:10438 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10438 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. 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): (defun gdb-quit () "Kill the GUD interaction and gdb buffers and reset variables. Use this command to exit a debugging session cleanly and reset things like the toolbar and margin in the source buffers." (interactive) (dolist (buffer (buffer-list)) (save-excursion (set-buffer buffer) (if (eq gud-minor-mode 'gdba) (if (string-match "^\*" (buffer-name)) (kill-buffer nil) (if (display-graphic-p) (remove-images (point-min) (point-max)) (remove-strings (point-min) (point-max))) (setq left-margin-width 0) (setq gud-minor-mode nil) (kill-local-variable 'tool-bar-map) (setq gud-running nil) (if (get-buffer-window (current-buffer)) (set-window-margins (get-buffer-window (current-buffer)) left-margin-width right-margin-width)))))) (if (eq (selected-window) (minibuffer-window)) (other-window 1)) (delete-other-windows)) Jan D.