Function: gdb-edit-locals-value
gdb-edit-locals-value is an interactive and byte-compiled function
defined in gdb-mi.el.gz.
Signature
(gdb-edit-locals-value &optional EVENT)
Documentation
Assign a value to a variable displayed in the locals buffer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-edit-locals-value (&optional event)
"Assign a value to a variable displayed in the locals buffer."
(interactive (list last-input-event))
(save-excursion
(if event (posn-set-point (event-end event)))
(beginning-of-line)
(let* ((var (gdb-mi--field
(get-text-property (point) 'gdb-local-variable) 'name))
(value (read-string (format "New value (%s): " var))))
(gud-basic-call
(concat "-gdb-set variable " var " = " value)))))