]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix GUD overlay arrows in gdb-mi when debugging over Tramp
authorJim Porter <jporterbugs@gmail.com>
Sat, 1 May 2021 10:09:36 +0000 (12:09 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 1 May 2021 10:09:36 +0000 (12:09 +0200)
* lisp/progmodes/gdb-mi.el (gdb-frame-handler): Use local part of
file name when setting `gud-last-frame'.

lisp/progmodes/gdb-mi.el

index 1a96755bcf0b33e77bba64ca1395ad999e6602ac..8e6ce3d269637834cc016bd3655037f4fadaaeba 100644 (file)
@@ -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)))