Closed
Description
Building the compiler and running the tests on system with GDB 11.2 fails on current master (commit 97cde9f) with the following:
---- [debuginfo-gdb] debuginfo/borrowed-unique-basic.rs stdout ----
NOTE: compiletest thinks it is using GDB with native rust support
NOTE: compiletest thinks it is using GDB version 11002000
error: line not found in debugger output: $3 = 97
status: exit status: 0
command: "/usr/bin/gdb" "-quiet" "-batch" "-nx" "-command=/home/nert/dev/rust/build/x86_64-unknown-linux-gnu/test/debuginfo/borrowed-unique-basic.gdb/borrowed-unique-basic.debugger.script"
--- stdout -------------------------------
GNU gdb (Gentoo 11.2 vanilla) 11.2
... a little bit down we see ...
$2 = -1
$3 = 97 'a'
$4 = 68
and the same for src/test/debuginfo/borrowed-basic.rs
.
The reason for that is pretty simple. GDB 11.2 added support for printing characters for Rust: https://sourceware.org/bugzilla/show_bug.cgi?id=28637 which is effective since the char type changed in debuginfo in #89887