mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00

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.
23 lines
462 B
Rust
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() {()}
|