mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-13 11:01:04 +00:00
17 lines
692 B
Diff
17 lines
692 B
Diff
Description: Fix some debuginfo tests
|
|
Author: Kai Noda <nodakai@gmail.com>
|
|
Bug: https://github.com/rust-lang/rust/issues/40557
|
|
---
|
|
--- a/src/tools/compiletest/src/runtest.rs
|
|
+++ b/src/tools/compiletest/src/runtest.rs
|
|
@@ -646,6 +646,9 @@
|
|
script_str.push_str(&format!("file {}\n",
|
|
exe_file.to_str().unwrap()
|
|
.replace(r"\", r"\\")));
|
|
+ if self.config.gdb_native_rust {
|
|
+ script_str.push_str("set language rust\n");
|
|
+ }
|
|
|
|
// Force GDB to print values in the Rust format.
|
|
if self.config.gdb_native_rust {
|