changeset 103090:60e16972e785

(gdb-tooltip-print): Avoid "Non-X frame used" error with gud-tooltip-mode in the Linux console.
author Nick Roberts <nickrob@snap.net.nz>
date Tue, 28 Apr 2009 10:35:41 +0000
parents 40c914155732
children 0062b68a76c3
files lisp/progmodes/gdb-ui.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gdb-ui.el	Tue Apr 28 10:35:08 2009 +0000
+++ b/lisp/progmodes/gdb-ui.el	Tue Apr 28 10:35:41 2009 +0000
@@ -504,7 +504,8 @@
 	      (buffer-string))))
        ;; remove newline for gud-tooltip-echo-area
        (substring string 0 (- (length string) 1))))
-   (or gud-tooltip-echo-area tooltip-use-echo-area)))
+   (or gud-tooltip-echo-area tooltip-use-echo-area
+   (not (display-graphic-p)))))
 
 ;; If expr is a macro for a function don't print because of possible dangerous
 ;; side-effects. Also printing a function within a tooltip generates an