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

36 lines
704 B
Rust

//@ compile-flags:-g
//@ disable-gdb-pretty-printers
// === GDB TESTS ===================================================================================
// gdb-command:run
// gdb-command:print a
// gdb-check:$1 = [1, 2, 3]
// gdb-command:print vec::VECT
// gdb-check:$2 = [4, 5, 6]
// === LLDB TESTS ==================================================================================
// lldb-command:run
// lldb-command:v a
// lldb-check:[...] { [0] = 1 [1] = 2 [2] = 3 }
#![allow(unused_variables)]
static mut VECT: [i32; 3] = [1, 2, 3];
fn main() {
let a = [1, 2, 3];
unsafe {
VECT[0] = 4;
VECT[1] = 5;
VECT[2] = 6;
}
zzz(); // #break
}
fn zzz() {()}