]> git.eshelyaron.com Git - emacs.git/commitdiff
(gdb-jsonify-buffer): Catch gdb internal output.
authorNick Roberts <nickrob@snap.net.nz>
Thu, 24 Sep 2009 01:21:56 +0000 (01:21 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Thu, 24 Sep 2009 01:21:56 +0000 (01:21 +0000)
lisp/progmodes/gdb-ui.el

index 0e12a33fe163fa4c1b5f322092d63632af139607..d038f01b0ef29bd31590dd000dfec8d7b20e5650 100644 (file)
@@ -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 "")