DWARF strongly recommends UTF-8 in all cases, and there's an attribute on the compile unit that allows the producer to claim it uses UTF-8. But, whether the producer actually uses UTF-8 or something else is up to the individual producer (usually the compiler). --paulr
From: Dwarf-discuss <dwarf-discuss-bounces+paul.robinson=sony....@lists.dwarfstd.org> On Behalf Of Roger Phillips via Dwarf-discuss Sent: Thursday, November 2, 2023 6:30 AM To: dwarf-discuss@lists.dwarfstd.org Subject: [Dwarf-discuss] Do Dwarf symbols only use ascii? Greetings, I'm currently trying to debug a problem in the dynamorio system where the isdigit function crashes in elftoolchain while trying to parse symbols from dwarf info: https://github.com/DynamoRIO/dynamorio/issues/6161<https://github.com/DynamoRIO/dynamorio/issues/6161> My question is whether these symbols really need the locale functionality of libc's isdigit function or if the symbols in Dwarf are just standard ascii and could be parsed in a portable way with the simple method mentioned there. Regards. [https://opengraph.githubassets.com/87058afdf67e2f77d78a5ad6075a876f176e4e695369461f8ef6bb131b46286e/DynamoRIO/dynamorio/issues/6161]<https://github.com/DynamoRIO/dynamorio/issues/6161> CRASH Segfault with DrMemory * Issue #6161 * DynamoRIO/dynamorio<https://github.com/DynamoRIO/dynamorio/issues/6161> Received SIGSEGV at client library pc 0x00007f36e6555fa9 in thread 15974 Base: 0x00007f36ff0c5000 Registers:eax=0x0000000000000033 ebx=0x00007f34e72ed298 ecx=0x0000000000000050 edx=0x00000000000000... github.com
-- Dwarf-discuss mailing list Dwarf-discuss@lists.dwarfstd.org https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss