Function: gdb-input
gdb-input is a byte-compiled function defined in gdb-mi.el.gz.
Signature
(gdb-input COMMAND HANDLER-FUNCTION &optional TRIGGER-NAME)
Documentation
Send COMMAND to GDB via the MI interface.
Run the function HANDLER-FUNCTION, with no arguments, once the command is complete. Do not send COMMAND to GDB if TRIGGER-NAME is non-nil and Emacs is still waiting for a reply from another command previously sent with the same TRIGGER-NAME.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-input (command handler-function &optional trigger-name)
"Send COMMAND to GDB via the MI interface.
Run the function HANDLER-FUNCTION, with no arguments, once the command is
complete. Do not send COMMAND to GDB if TRIGGER-NAME is non-nil and
Emacs is still waiting for a reply from another command previously
sent with the same TRIGGER-NAME."
(when (or (not trigger-name)
(not (gdb-pending-handler-p trigger-name)))
(setq gdb-token-number (1+ gdb-token-number))
(setq command (concat (number-to-string gdb-token-number) command))
(if gdb-enable-debug (push (list 'send-item command handler-function)
gdb-debug-log))
(gdb-add-handler gdb-token-number handler-function trigger-name)
(if gdbmi-debug-mode (message "gdb-input: %s" command))
(process-send-string (get-buffer-process gud-comint-buffer)
(concat command "\n"))))