From: Eli Zaretskii <eliz@gnu.org>
To: "Göran Uddeborg" <goeran@uddeborg.se>
Cc: 21940@debbugs.gnu.org
Subject: bug#21940: 24.5; GDB interface gets confused by non-ASCII
Date: Tue, 17 Nov 2015 18:47:07 +0200 [thread overview]
Message-ID: <837flgbmk4.fsf@gnu.org> (raw)
In-Reply-To: <84lh9wmyqn.fsf@mimmi.uddeborg>
> From: Göran Uddeborg <goeran@uddeborg.se>
> Date: Tue, 17 Nov 2015 16:28:32 +0100
>
>
> It seems something has broken in the interface between Gdb and Emacs.
> I'm not sure which side is to blame, but I'll start with a report here.
> Let me know if I should report to gdb instead.
>
> With the most recent versions of Emacs and Gdb on Fedora, the debugging
> mode gets confused if the path to the program being debugged contains a
> non-ASCII letter. To reproduce it do like this:
>
> 1. cd /tmp
> 2. mkdir göran
> 3. cd göran
> 4. cat > c.c << EOF
> int main()
> {
> return 0;
> }
> EOF
> 5. cc -g c.c -o c
> 6. emacs -Q
> 7. M-x gdb <return> <return>
> 8. (in *gud-c* buffer) b main <return>
> 9. r <return>
>
> The first strange thing happens at step 8. After having printed the
> message "Breakpoint 1 at 0x4004fa: file c.c, line 3" and a "(gdb)"
> prompt, there is also a listing of the c.c file inserted in the
> "*gud-c*" buffer.
>
> After running the program in step 9, the line where the program stops
> is listed in the "*gud-c*" buffer, and then the file c.c is listed
> AGAIN.
>
> I also get a question in the minibuffer: File /tmp/göran/"/tmp/g\303\266ran/c.c" is read-only on disk. Make buffer read-only, too? (y or n)
>
> Note that "/tmp/göran" is repeated here, quoted with octal codes once.
> The quotation signs also look strangely placed.
>
> If I replace the "ö" in the name of the directory created in step 2, the
> debugger behaves as I'm used to. When it reaches the breakpoint in step
> 9, the file c.c is popped up in a separate window, with a little marker
> at line 3 where the process has stopped.
Thanks for reporting this.
This is bug #21572 (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21572),
which is already fixed in the development sources.
prev parent reply other threads:[~2015-11-17 16:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-17 15:28 bug#21940: 24.5; GDB interface gets confused by non-ASCII Göran Uddeborg
2015-11-17 16:47 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=837flgbmk4.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=21940@debbugs.gnu.org \
--cc=goeran@uddeborg.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.