[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#57464: 28.1.50; gdb-mi disassembly is not shown over tramp
From: |
Michael Albinus |
Subject: |
bug#57464: 28.1.50; gdb-mi disassembly is not shown over tramp |
Date: |
Mon, 29 Aug 2022 12:19:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Jake Moss <jake.moss@uq.net.au> writes:
Hi Jake,
> I believe this is caused by gdb-mi.el passing the full remote path
> instead of the remotes local path to gdb. Below is a patch to achieve
> the behaviour I expected.
>
>
> diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
> index 66fc4b1..037f64a 100644
> --- a/lisp/progmodes/gdb-mi.el
> +++ b/lisp/progmodes/gdb-mi.el
> @@ -3998,7 +3998,7 @@ gdb-invalidate-disassembly
> (file (gdb-mi--field frame 'fullname))
> (line (gdb-mi--field frame 'line)))
> (if file
> - (format "-data-disassemble -f %s -l %s -n -1 -- 0" file line)
> + (format "-data-disassemble -f %s -l %s -n -1 -- 0" (file-local-name
> file) line)
> ;; If we're unable to get a file name / line for $PC, simply
> ;; follow $PC, disassembling the next 10 (x ~15 (on IA) ==
> ;; 150 bytes) instructions.
I'm short in time this week, so I cannot test. But your patch LGTM, so
if somebody wants to take the stab, it could be applied to master.
> Thanks!
> Jake Moss
Best regards, Michael.