Function: gdb-add-handler
gdb-add-handler is a byte-compiled function defined in gdb-mi.el.gz.
Signature
(gdb-add-handler TOKEN-NUMBER HANDLER-FUNCTION &optional PENDING-TRIGGER)
Documentation
Insert a new GDB command handler in gdb-handler-list.
Handlers are used to keep track of the commands sent to GDB and to handle the replies received. Upon reception of a reply prefixed with TOKEN-NUMBER, invoke the callback HANDLER-FUNCTION. If PENDING-TRIGGER is specified, no new GDB commands will be sent with this same PENDING-TRIGGER until a reply is received for this handler.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-add-handler (token-number handler-function &optional pending-trigger)
"Insert a new GDB command handler in `gdb-handler-list'.
Handlers are used to keep track of the commands sent to GDB
and to handle the replies received.
Upon reception of a reply prefixed with TOKEN-NUMBER,
invoke the callback HANDLER-FUNCTION.
If PENDING-TRIGGER is specified, no new GDB commands will be
sent with this same PENDING-TRIGGER until a reply is received
for this handler."
(push (make-gdb-handler :token-number token-number
:function handler-function
:pending-trigger pending-trigger)
gdb-handler-list))