From be454f056fc7637da6d1922c532d73831dc072db Mon Sep 17 00:00:00 2001 From: Arlo Siemsen Date: Thu, 14 Oct 2021 10:26:42 -0700 Subject: Change `char` type in debuginfo to DW_ATE_UTF Rust previously encoded the `char` type as DW_ATE_unsigned_char. The more appropriate encoding is DW_ATE_UTF. Clang uses this same debug encoding for char32_t. This fixes the display of `char` types in Windows debuggers as well as LLDB. --- src/test/debuginfo/borrowed-basic.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/test/debuginfo/borrowed-basic.rs') diff --git a/src/test/debuginfo/borrowed-basic.rs b/src/test/debuginfo/borrowed-basic.rs index c3868d46ba4..b4bb7c146d9 100644 --- a/src/test/debuginfo/borrowed-basic.rs +++ b/src/test/debuginfo/borrowed-basic.rs @@ -14,8 +14,7 @@ // gdb-check:$2 = -1 // gdb-command:print *char_ref -// gdbg-check:$3 = 97 -// gdbr-check:$3 = 97 'a' +// gdb-check:$3 = 97 // gdb-command:print *i8_ref // gdbg-check:$4 = 68 'D' -- cgit 1.4.1-3-g733a5