Function: gud-basic-call
gud-basic-call is an interactive and byte-compiled function defined in
gud.el.gz.
Signature
(gud-basic-call COMMAND)
Documentation
Invoke the debugger COMMAND displaying source in other window.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/gud.el.gz
(defun gud-basic-call (command)
"Invoke the debugger COMMAND displaying source in other window."
(interactive "sInvoke debugger command: ")
(gud-set-buffer)
(let ((proc (get-buffer-process gud-comint-buffer)))
(or proc (error "Current buffer has no process"))
;; Arrange for the current prompt to get deleted.
(with-current-buffer gud-comint-buffer
(save-excursion
(save-restriction
(widen)
(if (marker-position gud-delete-prompt-marker)
;; We get here when printing an expression.
(goto-char gud-delete-prompt-marker)
(goto-char (process-mark proc))
(forward-line 0))
(if (looking-at comint-prompt-regexp)
(set-marker gud-delete-prompt-marker (point)))
(if (eq gud-minor-mode 'gdbmi)
(apply comint-input-sender (list proc command))
(process-send-string proc (concat command "\n"))))))))