aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-08-29 11:08:46 -0600
committerTom Tromey <tom@tromey.com>2018-08-31 12:59:16 -0600
commitaef9346c25b0a0c665bce793c00797f5ab82ed37 (patch)
treeb4ad923d6f2cf110fa2ebaf104d2df9058dd944a
parent0c8885885ab1d62971bbae22d4b5e335c31b19c9 (diff)
downloadgdb-aef9346c25b0a0c665bce793c00797f5ab82ed37.zip
gdb-aef9346c25b0a0c665bce793c00797f5ab82ed37.tar.gz
gdb-aef9346c25b0a0c665bce793c00797f5ab82ed37.tar.bz2
Fix a small bug in gdb.rust/simple.rs
I noticed that gdb.rust/simple.rs had two local variables named "v". This didn't previous cause problems, but with a newer rust compiler this resulted in a test failure. (It should have failed all along, so I suppose earlier passes were due to a compiler bug.) This patch renames the second variable. gdb/testsuite/ChangeLog 2018-08-31 Tom Tromey <tom@tromey.com> * gdb.rust/simple.rs: Rename second variable "v".
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.rust/simple.rs2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 23a41d4..91ab0da 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2018-08-31 Tom Tromey <tom@tromey.com>
+
+ * gdb.rust/simple.rs: Rename second variable "v".
+
2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
* gdb.base/funcargs.c (use_a): New function.
diff --git a/gdb/testsuite/gdb.rust/simple.rs b/gdb/testsuite/gdb.rust/simple.rs
index 9d89361..1bcc030 100644
--- a/gdb/testsuite/gdb.rust/simple.rs
+++ b/gdb/testsuite/gdb.rust/simple.rs
@@ -166,7 +166,7 @@ fn main () {
};
let u = Union { f2: 255 };
- let v = SimpleLayout { f1: 8, f2: 9 };
+ let simplelayout = SimpleLayout { f1: 8, f2: 9 };
println!("{}, {}", x.0, x.1); // set breakpoint here
println!("{}", diff2(92, 45));