From: Jim Porter Date: Sat, 1 May 2021 10:05:37 +0000 (+0200) Subject: Fix GUD overlay arrows in M-x gdb when debugging over Tramp. Don't merge X-Git-Tag: emacs-28.0.90~2617^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ccfd2e20a9;p=emacs.git Fix GUD overlay arrows in M-x gdb when debugging over Tramp. Don't merge * lisp/progmodes/gdb-mi.el (gdb-frame-handler): Use local part of file name when setting `gud-last-frame'. --- diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index 1b2642fae70..51a237a38e8 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -4376,7 +4376,7 @@ overlay arrow in source buffer." (let ((frame (bindat-get-field (gdb-json-partial-output) 'frame))) (when frame (setq gdb-selected-frame (bindat-get-field frame 'func)) - (setq gdb-selected-file (bindat-get-field frame 'fullname)) + (setq gdb-selected-file (file-local-name (bindat-get-field frame 'fullname))) (setq gdb-frame-number (bindat-get-field frame 'level)) (setq gdb-frame-address (bindat-get-field frame 'addr)) (let ((line (bindat-get-field frame 'line)))