[Bug mi/34501] gdb responds with corrupt output on trying to inserting a breakpoint

"vries at gcc dot gnu.org via Gdb-prs" <[email protected]>
Newsgroups gmane.comp.gdb.bugs.discuss
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34501

--- Comment #7 from Tom de Vries <vries at gcc dot gnu.org> ---
I managed to reproduce this, with current gdb built at O0, and:
...
$ gdb \
    -q \
    -ex 'set charset UTF-8' \
    -ex 'interpreter-exec mi2 "-break-insert -f foo' \
    -ex quit
...

Using "set style emoji off" fixes this for me.

So, the prefix you're seeing is the error-prefix:
...
(gdb) show style error-prefix
Error prefix is "❌️ ".
...

Whether there's a bug in gdb or not, I'm not sure.

But if so, it's simply a usability bug of the type "don't use emojis in MI" or
something like that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.