From e61688f87db985e8f12631d609d74f9a12e5839b Mon Sep 17 00:00:00 2001 From: Jim Porter Date: Sat, 1 May 2021 11:56:19 +0200 Subject: [PATCH] Fix setting breakpoints in M-x gdb for remote files. Don't merge * lisp/progmodes/gdb-mi.el (gdb-jsonify-buffer): Fix modification of GDB/MI "fullname" property for remote files --- lisp/progmodes/gdb-mi.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index 65fe997341c..1b2642fae70 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -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 -- 2.39.5