aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-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 9acaa79..e7693a0 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2018-11-19 Tom Tromey <tom@tromey.com>
+
+ * gdb.rust/simple.rs: Don't initialize empty_enum_value.
+
2018-11-19 Pedro Alves <palves@redhat.com>
* gdb.base/warning.exp: Don't override INTERNAL_FLAGS. Use
diff --git a/gdb/testsuite/gdb.rust/simple.rs b/gdb/testsuite/gdb.rust/simple.rs
index 00a25e0..79d463c 100644
--- a/gdb/testsuite/gdb.rust/simple.rs
+++ b/gdb/testsuite/gdb.rust/simple.rs
@@ -170,7 +170,7 @@ fn main () {
let u = Union { f2: 255 };
let simplelayout = SimpleLayout { f1: 8, f2: 9 };
- let empty_enum_value: EmptyEnum = unsafe { ::std::mem::zeroed() };
+ let empty_enum_value: EmptyEnum;
println!("{}, {}", x.0, x.1); // set breakpoint here
println!("{}", diff2(92, 45));