This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb/gdb-8.0-branch] Replace "return" with "break"
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 17 May 2017 05:08:18 -0000
- Subject: [binutils-gdb/gdb-8.0-branch] Replace "return" with "break"
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d05228c1bb3b8f8b9e187c4b76d0c71a72ba15e8
commit d05228c1bb3b8f8b9e187c4b76d0c71a72ba15e8
Author: Tom Tromey <tom@tromey.com>
Date: Thu May 11 19:44:43 2017 -0600
Replace "return" with "break"
This replaces a "return" with a "break" in rust_print_subexp, for
consistency.
2017-05-12 Tom Tromey <tom@tromey.com>
* rust-lang.c (rust_print_subexp): Replace "return" with "break".
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/rust-lang.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 199e5c6..076c921 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2017-05-12 Tom Tromey <tom@tromey.com>
+
+ * rust-lang.c (rust_print_subexp): Replace "return" with "break".
+
2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* procfs.c (procfs_create_inferior): Change prototype to match
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c
index fe8a58c..dc48ff9 100644
--- a/gdb/rust-lang.c
+++ b/gdb/rust-lang.c
@@ -2021,7 +2021,7 @@ rust_print_subexp (struct expression *exp, int *pos, struct ui_file *stream,
print_subexp (exp, pos, stream, PREC_SUFFIX);
fprintf_filtered (stream, ".%d", tem);
}
- return;
+ break;
case OP_RUST_ARRAY:
++*pos;