Function: gdb-mouse-toggle-breakpoint-margin
gdb-mouse-toggle-breakpoint-margin is an interactive and byte-compiled
function defined in gdb-mi.el.gz.
Signature
(gdb-mouse-toggle-breakpoint-margin EVENT)
Documentation
Enable/disable breakpoint in left margin with mouse click.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-mouse-toggle-breakpoint-margin (event)
"Enable/disable breakpoint in left margin with mouse click."
(interactive "e")
(mouse-minibuffer-check event)
(let ((posn (event-end event)))
(if (numberp (posn-point posn))
(with-selected-window (posn-window posn)
(save-excursion
(goto-char (posn-point posn))
(if (posn-object posn)
(gud-basic-call
(let ((bptno (get-text-property
0 'gdb-bptno (car (posn-string posn)))))
(concat
(if (get-text-property
0 'gdb-enabled (car (posn-string posn)))
"-break-disable "
"-break-enable ")
bptno)))))))))