From 188c1ae6034a4775eb0c3e7f65714f9b90efa8a7 Mon Sep 17 00:00:00 2001 From: Richard Copley Date: Thu, 18 Jul 2013 12:56:08 -0400 Subject: [PATCH] * gdb-mi.el (gdb-done-or-error): Guard against "%" in gdb output (tiny change) Fixes: debbugs:14127 --- lisp/ChangeLog | 5 +++++ lisp/progmodes/gdb-mi.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e8f9f456f56..71a23f1a822 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-07-18 Richard Copley (tiny change) + + * progmodes/gdb-mi.el (gdb-done-or-error): + Guard against "%" in gdb output. (Bug#14127) + 2013-07-08 Andreas Schwab * progmodes/sh-script.el (sh-read-variable): Remove interactive diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index fc3d336cf99..3e3b872fd0e 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -2115,7 +2115,7 @@ current thread and update GDB buffers." ;; MI error - send to minibuffer (when (eq type 'error) ;; Skip "msg=" from `output-field' - (message (read (substring output-field 4))) + (message "%s" (read (substring output-field 4))) ;; Don't send to the console twice. (If it is a console error ;; it is also in the console stream.) (setq output-field nil))) -- 2.39.2