unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Toolbar problems with GDB mode.
@ 2003-01-03 17:50 Jan D.
  2003-01-03 20:05 ` Nick Roberts
  0 siblings, 1 reply; 18+ messages in thread
From: Jan D. @ 2003-01-03 17:50 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2003-01-12 20:13 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-03 17:50 Toolbar problems with GDB mode Jan D.
2003-01-03 20:05 ` Nick Roberts
2003-01-03 22:09   ` Jan D.
2003-01-04  0:25     ` Nick Roberts
2003-01-04 13:05       ` Jan D.
2003-01-04 19:54         ` Nick Roberts
2003-01-04 21:44           ` Jan D.
2003-01-06 20:05           ` Kevin Rodgers
2003-01-07 23:21             ` Nick Roberts
2003-01-10 16:23               ` Jan D.
2003-01-10 21:55                 ` Nick Roberts
2003-01-04 23:44     ` Richard Stallman
2003-01-05 23:20       ` Nick Roberts
2003-01-11 19:49         ` Stefan Monnier
2003-01-12  0:05           ` Nick Roberts
2003-01-12 20:13             ` Stefan Monnier
2003-01-04  9:57   ` Eli Zaretskii
2003-01-04 13:36     ` Jan D.

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).