emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el


From: Nick Roberts
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el
Date: Tue, 07 Mar 2006 10:42:19 +0000

Index: emacs/lisp/progmodes/gdb-ui.el
diff -u emacs/lisp/progmodes/gdb-ui.el:1.145 
emacs/lisp/progmodes/gdb-ui.el:1.146
--- emacs/lisp/progmodes/gdb-ui.el:1.145        Wed Mar  1 22:44:19 2006
+++ emacs/lisp/progmodes/gdb-ui.el      Tue Mar  7 10:42:19 2006
@@ -796,7 +796,12 @@
          (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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]