diff options
| author | Tom Tromey <tom@tromey.com> | 2022-03-17 20:19:10 -0600 |
|---|---|---|
| committer | Tom Tromey <tom@tromey.com> | 2022-03-17 20:19:10 -0600 |
| commit | 789eb08147d0f89b8cf6fbe04dbea1a4c81d7c42 (patch) | |
| tree | 8428a86e1f5a6d7e50c035b4ebebc4f9e6f24d2d /src/test/debuginfo/borrowed-basic.rs | |
| parent | 4ca56d2b7bbe275bc6c9f3cd698c6e0719a07182 (diff) | |
| download | rust-789eb08147d0f89b8cf6fbe04dbea1a4c81d7c42.tar.gz rust-789eb08147d0f89b8cf6fbe04dbea1a4c81d7c42.zip | |
Fix debuginfo tests with GDB 11.2
GDB 11.2 added support for DW_ATE_UTF, which caused some test failures. This fixes these tests by changing the format that is used, and adds a new test to verify that characters are emitted as something that GDB can print in a char-like way. Fixes #94458
Diffstat (limited to 'src/test/debuginfo/borrowed-basic.rs')
| -rw-r--r-- | src/test/debuginfo/borrowed-basic.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/test/debuginfo/borrowed-basic.rs b/src/test/debuginfo/borrowed-basic.rs index b4bb7c146d9..45f5df228e3 100644 --- a/src/test/debuginfo/borrowed-basic.rs +++ b/src/test/debuginfo/borrowed-basic.rs @@ -1,6 +1,3 @@ -// Gdb doesn't know about UTF-32 character encoding and will print a rust char as only -// its numerical value. - // compile-flags:-g // min-lldb-version: 310 @@ -13,7 +10,7 @@ // gdb-command:print *int_ref // gdb-check:$2 = -1 -// gdb-command:print *char_ref +// gdb-command:print/d *char_ref // gdb-check:$3 = 97 // gdb-command:print *i8_ref |
