Skip to content

Commit d23a650

Browse files
committed
compiletest: force GDB to print values in the Rust format.
1 parent 58b33ad commit d23a650

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/compiletest/src/runtest.rs

+5
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,11 @@ actual:\n\
647647
exe_file.to_str().unwrap()
648648
.replace(r"\", r"\\")));
649649

650+
// Force GDB to print values in the Rust format.
651+
if self.config.gdb_native_rust {
652+
script_str.push_str("set language rust\n");
653+
}
654+
650655
// Add line breakpoints
651656
for line in &breakpoint_lines {
652657
script_str.push_str(&format!("break '{}':{}\n",

0 commit comments

Comments
 (0)