[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
STOP button on gud tool-bar doesn't always work
From: |
Nick Roberts |
Subject: |
STOP button on gud tool-bar doesn't always work |
Date: |
Mon, 29 May 2006 21:42:09 +1200 |
> There is a strange anomaly (IMO) on the gdb toolbar:
>
> When the debugged program is stopped, you can click on the the <GO> button
> in any source window associated with the program, but when the program
> is running, you can only click on the <STOP> button in the GUD buffer;
> if you click it in a source buffer (where <GO> works), the message is
This should fix it.
--
Nick http://www.inet.net.nz/~nickrob
*** gud.el 24 May 2006 09:24:48 +1200 1.108
--- gud.el 29 May 2006 21:29:34 +1200
*************** Used to grey out relevant togolbar icons
*** 130,139 ****
(defun gud-stop-subjob ()
(interactive)
! (if (string-equal
! (buffer-local-value 'gud-target-name gud-comint-buffer) "emacs")
! (comint-stop-subjob)
! (comint-interrupt-subjob)))
(easy-mmode-defmap gud-menu-map
'(([help] "Info" . gud-goto-info)
--- 130,139 ----
(defun gud-stop-subjob ()
(interactive)
! (with-current-buffer gud-comint-buffer
! (if (string-equal gud-target-name "emacs")
! (comint-stop-subjob)
! (comint-interrupt-subjob))))
(easy-mmode-defmap gud-menu-map
'(([help] "Info" . gud-goto-info)