aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2025-08-05 12:10:34 -0600
committerTom Tromey <tromey@adacore.com>2025-08-05 12:10:34 -0600
commit9dd189d3ed6ea239247637656bf2990f6dfb4522 (patch)
tree2e77f5f8bfe8486fe5d7fb62e0cc9df83360bf9a
parentf1e591b0c97a9a5680c150bd27694cea3f5ac1e8 (diff)
downloadbinutils-9dd189d3ed6ea239247637656bf2990f6dfb4522.zip
binutils-9dd189d3ed6ea239247637656bf2990f6dfb4522.tar.gz
binutils-9dd189d3ed6ea239247637656bf2990f6dfb4522.tar.bz2
Use '.rs' extension for Rust in gdb_simple_compile
While trying out gccrs, I noticed that gdb_simple_compile does not use the ".rs" extension for Rust sources. This patch fixes the problem, which lets gccrs get a little further in the test suite.
-rw-r--r--gdb/testsuite/lib/gdb.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 0a582aa..98691df 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -5729,6 +5729,10 @@ proc gdb_simple_compile {name code {type object} {compile_flags {}} {object obj}
set ext "d"
break
}
+ if { "$flag" eq "rust" } {
+ set ext "rs"
+ break
+ }
}
set src [standard_temp_file $name.$ext]
set obj [standard_temp_file $name.$postfix]