Function: gdb-mouse-jump

gdb-mouse-jump is an interactive and byte-compiled function defined in gdb-mi.el.gz.

Signature

(gdb-mouse-jump EVENT)

Documentation

Set execution address/line.

The destination source line can be selected either by clicking with \C-mouse-3 on the fringe/margin or dragging the arrow with \C-mouse-1 (default bindings). Unlike gdb-mouse-until the destination address can be before the current line, and no execution takes place.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-mouse-jump (event)
  "Set execution address/line.
The destination source line can be selected either by clicking with \\`C-mouse-3'
on the fringe/margin or dragging the arrow with \\`C-mouse-1' (default bindings).
Unlike `gdb-mouse-until' the destination address can be before the current
line, and no execution takes place."
  (interactive "e")
  (let ((start (event-start event))
	(end (event-end event)))
    (gdb--if-arrow gud-overlay-arrow-position start end
      (let ((line (line-number-at-pos (posn-point end))))
        (gud-call (concat "tbreak " (number-to-string line)))
        (gud-call (concat "jump " (number-to-string line)))))
    (gdb--if-arrow gdb-disassembly-position start end
      (save-excursion
        (goto-char (point-min))
        (forward-line (1- (line-number-at-pos (posn-point end))))
        (forward-char 2)
        (gud-call (concat "tbreak *%a"))
        (gud-call (concat "jump *%a"))))))