mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
Handle remote file names in gdb-mi.el
* lisp/progmodes/gdb-mi.el (gdb-jsonify-buffer): If `default-directory' is remote, full file names are adapted accordingly. (Bug#23608)
This commit is contained in:
parent
821ea144bd
commit
caa2770d1d
1 changed files with 8 additions and 1 deletions
|
|
@ -2661,8 +2661,15 @@ responses.
|
|||
If FIX-LIST is non-nil, \"FIX-LIST={..}\" is replaced with
|
||||
\"FIX-LIST=[..]\" prior to parsing. This is used to fix broken
|
||||
-break-info output when it contains breakpoint script field
|
||||
incompatible with GDB/MI output syntax."
|
||||
incompatible with GDB/MI output syntax.
|
||||
|
||||
If `default-directory' is remote, full file names are adapted accordingly."
|
||||
(save-excursion
|
||||
(let ((remote (file-remote-p default-directory)))
|
||||
(when remote
|
||||
(goto-char (point-min))
|
||||
(while (re-search-forward "[\\[,]fullname=\"\\(.+\\)\"" nil t)
|
||||
(replace-match (concat remote "\\1") nil nil nil 1))))
|
||||
(goto-char (point-min))
|
||||
(when fix-key
|
||||
(save-excursion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue