Function: gdb-tooltip-print

gdb-tooltip-print is a byte-compiled function defined in gdb-mi.el.gz.

Signature

(gdb-tooltip-print EXPR)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-tooltip-print (expr)
  (with-current-buffer (gdb-get-buffer 'gdb-partial-output-buffer)
    (goto-char (point-min))
    (cond
     ((re-search-forward (concat ".*value=\\(" gdb--string-regexp
                                 "\\)")
                         nil t)
      (tooltip-show
       (concat expr " = " (gdb-mi--c-string-from-string (match-string 1)))
       (or gud-tooltip-echo-area
	   (not (display-graphic-p)))))
     ((re-search-forward  "msg=\\(\".+\"\\)$" nil t)
      (tooltip-show (gdb-mi--c-string-from-string (match-string 1))
       (or gud-tooltip-echo-area
	   (not (display-graphic-p))))))))