From a3e29d69895f4d6d80b8d808441bafe83a52ec6b Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Thu, 24 Sep 2009 01:21:56 +0000 Subject: [PATCH] (gdb-jsonify-buffer): Catch gdb internal output. --- lisp/progmodes/gdb-ui.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 0e12a33fe16..d038f01b0ef 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el @@ -1814,7 +1814,8 @@ If FIX-LIST is non-nil, \"FIX-LIST={..}\" is replaced with incompatible with GDB/MI output syntax." (save-excursion (goto-char (point-min)) - (re-search-forward "\\^done," nil t) + ;; Sometimes missing symbol information precedes "^done" record. + (re-search-forward "[[:ascii:]]*?\\^done," nil t) (replace-match "") (re-search-forward "(gdb) \n" nil t) (replace-match "") -- 2.39.5