Function: gdb-start-wait-for-pending

gdb-start-wait-for-pending is a byte-compiled function defined in gdb-mi.el.gz.

Signature

(gdb-start-wait-for-pending VAR FUNC)

Documentation

Start waiting for pending GDB commands with VAR and FUNC.

This calls gdb-wait-for-pending if there isn't already a timer waiting for running the same FUNC, as indicated by a non-nil value of VAR. VAR should be a symbol of a boolean variable. The assumption is that when FUNC will be called, it will do the job for all the events that need to run FUNC after the pending GDB commands are finished. FUNC should reset VAR to nil, so further events of the same kind will be handled after FUNC exits.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-start-wait-for-pending (var func)
  "Start waiting for pending GDB commands with VAR and FUNC.
This calls `gdb-wait-for-pending' if there isn't already a timer waiting
for running the same FUNC, as indicated by a non-nil value of VAR.
VAR should be a symbol of a boolean variable.
The assumption is that when FUNC will be called, it will do the job for
all the events that need to run FUNC after the pending GDB commands are
finished.
FUNC should reset VAR to nil, so further events of the same kind will
be handled after FUNC exits."
  (when (null (symbol-value var))
    (set var t)
    (gdb-wait-for-pending func)))