Function: gdb-wait-for-pending
gdb-wait-for-pending is a byte-compiled function defined in
gdb-mi.el.gz.
Signature
(gdb-wait-for-pending FUNC)
Documentation
Wait for all pending GDB commands to finish and call FUNC.
This function checks every 0.5 seconds if there are any pending
triggers in gdb-handler-list.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-wait-for-pending (func)
"Wait for all pending GDB commands to finish and call FUNC.
This function checks every 0.5 seconds if there are any pending
triggers in `gdb-handler-list'."
(run-with-timer
0.5 nil
(lambda ()
(if (cl-some #'gdb-handler-pending-trigger gdb-handler-list)
(gdb-wait-for-pending func)
(funcall func)))))