Commit d35e063a authored by Nick Roberts's avatar Nick Roberts

(gdb-edit-value-handler): New function.

(gdb-edit-value): Use it to report any errors.
parent d9b586ff
......@@ -796,7 +796,12 @@ type=\"\\(.*?\\)\"")
(concat "server interpreter mi \"-var-assign "
varnum " " value "\"\n")
(concat "-var-assign " varnum " " value "\n"))
'ignore))))
`(lambda () (gdb-edit-value-handler ,value))))))
(defun gdb-edit-value-handler (value)
(goto-char (point-min))
(if (re-search-forward gdb-error-regexp nil t)
(message-box "Invalid number or expression (%s)" value)))
(defcustom gdb-show-changed-values t
"If non-nil change the face of out of scope variables and changed values.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment