]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix setting breakpoints in M-x gdb for remote files. Don't merge
authorJim Porter <jporterbugs@gmail.com>
Sat, 1 May 2021 09:56:19 +0000 (11:56 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 1 May 2021 09:56:19 +0000 (11:56 +0200)
* lisp/progmodes/gdb-mi.el (gdb-jsonify-buffer): Fix modification
of GDB/MI "fullname" property for remote files

lisp/progmodes/gdb-mi.el

index 65fe997341c2ae2401201f037d7a69b3da599b05..1b2642fae70e79ff70b1676bde013e7b9124def3 100644 (file)
@@ -2696,7 +2696,7 @@ If `default-directory' is remote, full file names are adapted accordingly."
     (let ((remote (file-remote-p default-directory)))
       (when remote
         (goto-char (point-min))
-        (while (re-search-forward "[\\[,]fullname=\"\\(.+\\)\"" nil t)
+        (while (re-search-forward "[\\[,]fullname=\"\\(.+?\\)\"" nil t)
           (replace-match (concat remote "\\1") nil nil nil 1))))
     (goto-char (point-min))
     (when fix-key