aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/gdb-mi.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index da5a2a503a6..c2622327967 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -1046,7 +1046,10 @@ no input, and GDB is waiting for input."
1046 1046
1047(declare-function tooltip-show "tooltip" (text &optional use-echo-area)) 1047(declare-function tooltip-show "tooltip" (text &optional use-echo-area))
1048 1048
1049(defconst gdb--string-regexp "\"\\(?:[^\\\"]\\|\\\\.\\)*\"") 1049(defconst gdb--string-regexp (rx "\""
1050 (* (or (seq "\\" nonl)
1051 (not (any "\"\\"))))
1052 "\""))
1050 1053
1051(defun gdb-tooltip-print (expr) 1054(defun gdb-tooltip-print (expr)
1052 (with-current-buffer (gdb-get-buffer 'gdb-partial-output-buffer) 1055 (with-current-buffer (gdb-get-buffer 'gdb-partial-output-buffer)