From ccfd2e20a985a1114469963e33b966721bb3ce29 Mon Sep 17 00:00:00 2001 From: Jim Porter Date: Sat, 1 May 2021 12:05:37 +0200 Subject: [PATCH] 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'. --- 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 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))) -- 2.39.5