[Bug testsuite/33970] [gdb/testsuite] UnicodeDecodeError for dwarf-to-dwarf-assembler.py gdb.rust/unicode/unicode
"cvs-commit 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=33970 --- Comment #1 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tom de Vries <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=31431841c09357f6f598549d69d9e98b89dde08e commit 31431841c09357f6f598549d69d9e98b89dde08e Author: Tom de Vries <[email protected]> Date: Wed Jun 10 11:11:53 2026 +0200 [gdb/contrib] Fix UnicodeDecodeError in dwarf-to-dwarf-assembler.py When running dwarf-to-dwarf-assembler.py on outputs/gdb.rust/unicode/unicode, I run into a UnicodeDecodeError for (using readelf -w): ... <4><9cf>: Abbrev Number: 10 (DW_TAG_variable) <9d3> DW_AT_name : (indirect string, offset: 0xab4): ð¯ ... or more explicit using llvm-dwarfdump -v: ... 0x000009cf: DW_TAG_variable [10] (0x000009c2) DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000ab4] \ = "\360\235\225\257") ... Fix this by using UTF-8 instead of ascii decoding, which gets us instead: ... DW_AT_name ð¯ DW_FORM_strp ... Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33970 -- You are receiving this mail because: You are on the CC list for the bug.