GNU bug report logs - #39408
Breakpoints don't work with M-x gdb under TRAMP

Previous Next

Package: emacs;

Reported by: Timo Lilja <timo.lilja <at> iki.fi>

Date: Mon, 3 Feb 2020 19:11:01 UTC

Severity: normal

Tags: patch

Fixed in version 27.3

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 39408 <at> debbugs.gnu.org (full text, mbox):

From: Jim Porter <jporterbugs <at> gmail.com>
To: 39408 <at> debbugs.gnu.org
Subject: Re: bug#39408: Breakpoints don't work with M-x gdb under TRAMP
Date: Thu, 15 Apr 2021 22:02:01 -0700
[Message part 1 (text/plain, inline)]
This is already fixed in Emacs 28 thanks to bug#44173 (a78c614), which
replaces the old GDB/MI parser (that converted the data to JSON first)
with a more-robust parser. Attached is a patch to fix this under Emacs
27.

The problem is that in `gdb-jsonify-buffer', when replacing the
"fullname" with a Tramp path, the wildcard was greedy, resulting in
only one "fullname" being replaced in the buffer. This had the effect
of rendering it impossible to have more than one breakpoint, as all
but the first breakpoint would have unmodified "fullname"s.

(Note: I have a couple of patches in Tramp already that put me at the
limit for patches without copyright assignment paperwork. However,
I've already requested the form.)
[0001-Emacs-27-Fix-setting-breakpoints-in-M-x-gdb-for-remote-files.patch (application/octet-stream, attachment)]

This bug report was last modified 4 years and 75 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.