Mercurial > emacs
changeset 104903:bc44fc226d0f
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.
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Thu, 10 Sep 2009 03:03:27 +0000 |
parents | 5328dd269964 |
children | 9d2e34daf3ab |
files | lisp/progmodes/gud.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 "/"))))