rust/tests/debuginfo/gdb-char.rs
bjorn3 ae2f8d9216 Remove the omit_gdb_pretty_printer_section attribute
Disabling loading of pretty printers in the debugger itself is more
reliable. Before this commit the .gdb_debug_scripts section couldn't be
included in dylibs or rlibs as otherwise there is no way to disable the
section anymore without recompiling the entire standard library.
2025-08-01 20:04:59 +00:00

23 lines
462 B
Rust

// GDB got support for DW_ATE_UTF in 11.2, see
// https://sourceware.org/bugzilla/show_bug.cgi?id=28637.
//@ min-gdb-version: 11.2
//@ compile-flags: -g
//@ disable-gdb-pretty-printers
// === GDB TESTS ===================================================================================
// gdb-command:run
// gdb-command:print ch
// gdb-check:$1 = 97 'a'
#![allow(unused_variables)]
fn main() {
let ch: char = 'a';
zzz(); // #break
}
fn zzz() {()}