Function: def-gdb-thread-buffer-gud-command
def-gdb-thread-buffer-gud-command is a macro defined in gdb-mi.el.gz.
Signature
(def-gdb-thread-buffer-gud-command NAME GUD-COMMAND &optional DOC)
Documentation
Define a NAME which will execute GUD-COMMAND with
gdb-thread-number locally bound to id of thread on the current
line.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defmacro def-gdb-thread-buffer-gud-command (name gud-command &optional doc)
"Define a NAME which will execute GUD-COMMAND with
`gdb-thread-number' locally bound to id of thread on the current
line."
`(def-gdb-thread-buffer-command ,name
(if gdb-non-stop
(let ((gdb-thread-number (gdb-mi--field thread 'id))
(gdb-gud-control-all-threads nil))
(call-interactively #',gud-command))
(error "Available in non-stop mode only, customize `gdb-non-stop-setting'"))
,doc))