1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00

(gdb-mouse-set-clear-breakpoint):

Fix in disassembly buffer (regression in 22.2).
This commit is contained in:
Nick Roberts 2008-04-03 21:34:56 +00:00
parent f185e4d21f
commit 79669f88b4

View file

@ -1979,11 +1979,12 @@ static char *magick[] = {
(declare-function gud-break "gdb-ui" t t) ; gud-def
(defun gdb-mouse-set-clear-breakpoint (event)
"Set/clear breakpoint in left fringe/margin with mouse click."
"Set/clear breakpoint in left fringe/margin at mouse click.
If not in a source or disassembly buffer just set point."
(interactive "e")
(mouse-minibuffer-check event)
(let ((posn (event-end event)))
(if (buffer-file-name)
(if (or (buffer-file-name) (eq major-mode 'gdb-assembler-mode))
(if (numberp (posn-point posn))
(with-selected-window (posn-window posn)
(save-excursion