GNU bug report logs - #33548
25.1; GUD GDB doesn't decode file paths correctly

Previous Next

Package: emacs;

Reported by: ksqsf <i <at> ksqsf.moe>

Date: Thu, 29 Nov 2018 17:34:01 UTC

Severity: normal

Found in version 25.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: ksqsf <i <at> ksqsf.moe>
Cc: 33548-done <at> debbugs.gnu.org
Subject: Re: bug#33548: 25.1; GUD GDB doesn't decode file paths correctly
Date: Fri, 30 Nov 2018 09:39:31 +0200
> From: ksqsf <i <at> ksqsf.moe>
> Cc: 33548 <at> debbugs.gnu.org
> Date: Fri, 30 Nov 2018 10:03:19 +0800
> Feedback-ID: bizesmtp:ksqsf.moe:qybgforeign:qybgforeign4
> 
> 在 2018-11-29四的 21:35 +0200,Eli Zaretskii写道:
> > Does it help to set gdb-mi-decode-strings to utf-8?
> 
> Yes! This fixes this problem for me. Thanks. This report can be closed
> now.

Done.

> I think this variable deserves a mention in the doc anyway.

What documentation did you have in mind?

> Actually it should be made default.

No, I don't think so.  It has some confusing side effects, and in most
cases is unnecessary.

> I noticed the warning, but can we do better? I mean, simply stops gdb
> from escaping strings (does gdb even support this?), as _inconsistent_
> escaping does nothing but introducing problems.

You can tell GDB to stop escaping in strings ("set print
sevenbit-strings", which is off by default), but GDB is under user
control, and the user is legitimately allowed to turn escaping on, we
cannot do anything about that.  Plus, there are GDB settings to
control the encoding of text strings that GDB emits based on values of
the variables of the program being debugged.

> LLDB seems to do better job in this regard.

??? LLDB doesn't have a respectable implementation of the MI protocol
to begin with.




This bug report was last modified 6 years and 179 days ago.

Previous Next


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