From 019c70e731d0243ad3ea2d4ebb02dd4a343e868f Mon Sep 17 00:00:00 2001 From: Jim Porter Date: Sat, 1 May 2021 12:09:36 +0200 Subject: [PATCH] Fix GUD overlay arrows in gdb-mi when debugging over Tramp * 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 1a96755bcf0..8e6ce3d2696 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -4512,7 +4512,7 @@ overlay arrow in source buffer." (let ((frame (gdb-mi--field (gdb-mi--partial-output) 'frame))) (when frame (setq gdb-selected-frame (gdb-mi--field frame 'func)) - (setq gdb-selected-file (gdb-mi--field frame 'fullname)) + (setq gdb-selected-file (file-local-name (gdb-mi--field frame 'fullname))) (setq gdb-frame-number (gdb-mi--field frame 'level)) (setq gdb-frame-address (gdb-mi--field frame 'addr)) (let ((line (gdb-mi--field frame 'line))) -- 2.39.5