Skip to content

Commit

Permalink
Rollup merge of rust-lang#41877 - eddyb:gdb-force-rust, r=michaelwoer…
Browse files Browse the repository at this point in the history
…ister

compiletest: force GDB to print values in the Rust format.

Based on @nodakai's rust-lang#40557 (comment) and @infinity0's rust-lang#40557 (comment).
Fixes rust-lang#40557.
  • Loading branch information
frewsxcv authored May 10, 2017
2 parents 2357f23 + d23a650 commit 116deb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 116deb7

Please sign in to comment.