From d23a65077add9da538e7ba2c2d3c3baae7a8597e Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Wed, 10 May 2017 14:37:29 +0300 Subject: [PATCH] compiletest: force GDB to print values in the Rust format. --- src/tools/compiletest/src/runtest.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index a044282666da0..461cb59bf7dfa 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -647,6 +647,11 @@ actual:\n\ exe_file.to_str().unwrap() .replace(r"\", r"\\"))); + // Force GDB to print values in the Rust format. + if self.config.gdb_native_rust { + script_str.push_str("set language rust\n"); + } + // Add line breakpoints for line in &breakpoint_lines { script_str.push_str(&format!("break '{}':{}\n",