mirror of https://github.com/rust-lang/rust.git
Rollup merge of #41877 - eddyb:gdb-force-rust, r=michaelwoerister
compiletest: force GDB to print values in the Rust format. Based on @nodakai's https://github.com/rust-lang/rust/issues/40557#issuecomment-294368330 and @infinity0's https://github.com/rust-lang/rust/issues/40557#issuecomment-300133591. Fixes #40557.
This commit is contained in:
commit
607320239f
|
@ -647,6 +647,11 @@ actual:\n\
|
||||||
exe_file.to_str().unwrap()
|
exe_file.to_str().unwrap()
|
||||||
.replace(r"\", r"\\")));
|
.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
|
// Add line breakpoints
|
||||||
for line in &breakpoint_lines {
|
for line in &breakpoint_lines {
|
||||||
script_str.push_str(&format!("break '{}':{}\n",
|
script_str.push_str(&format!("break '{}':{}\n",
|
||||||
|
|
Loading…
Reference in New Issue