# HG changeset patch # User Nick Roberts # Date 1252551807 0 # Node ID bc44fc226d0ffd1808cfcf62db02d9541263985f # Parent 5328dd26996411b9c68359d9b2f3d742fd1db348 Reported in thread for Bug#4375. * progmodes/gud.el (gud-tooltip-print-command): Use MI command "-data-evaluate-expression" instead of print. * progmodes/gdb-mi.el (gdb-tooltip-print-1): Ditto. (gdb-tooltip-print): Parse output from above MI command. diff -r 5328dd269964 -r bc44fc226d0f lisp/progmodes/gud.el --- a/lisp/progmodes/gud.el Thu Sep 10 03:03:00 2009 +0000 +++ b/lisp/progmodes/gud.el Thu Sep 10 03:03:27 2009 +0000 @@ -3411,7 +3411,8 @@ (defun gud-tooltip-print-command (expr) "Return a suitable command to print the expression EXPR." (case gud-minor-mode - ((dbx gdbmi) (concat "print " expr)) + (gdbmi (concat "-data-evaluate-expression " expr)) + (dbx (concat "print " expr)) ((xdb pdb) (concat "p " expr)) (sdb (concat expr "/"))))