diff options
| author | Arlo Siemsen <arsiem@microsoft.com> | 2021-10-14 10:26:42 -0700 |
|---|---|---|
| committer | Arlo Siemsen <arsiem@microsoft.com> | 2022-02-23 08:31:10 -0800 |
| commit | be454f056fc7637da6d1922c532d73831dc072db (patch) | |
| tree | a8d034e32f662d7f5eaf355e1b011c0222bfa814 /src/test/debuginfo/borrowed-basic.rs | |
| parent | c651ba8a542c7d89b271efbf024a31091c824f4b (diff) | |
| download | rust-be454f056fc7637da6d1922c532d73831dc072db.tar.gz rust-be454f056fc7637da6d1922c532d73831dc072db.zip | |
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.
Diffstat (limited to 'src/test/debuginfo/borrowed-basic.rs')
| -rw-r--r-- | src/test/debuginfo/borrowed-basic.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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' |
