This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[FYI 1/3] Replace "return" with "break"
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Fri, 12 May 2017 09:00:53 -0600
- Subject: [FYI 1/3] Replace "return" with "break"
- Authentication-results: sourceware.org; auth=none
- References: <20170512150055.27230-1-tom@tromey.com>
This replaces a "return" with a "break" in rust_print_subexp, for
consistency.
ChangeLog
2017-05-12 Tom Tromey <tom@tromey.com>
* rust-lang.c (rust_print_subexp): Replace "return" with "break".
---
gdb/ChangeLog | 4 ++++
gdb/rust-lang.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7fa0370..b4caf1f 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-09 Yao Qi <yao.qi@linaro.org>
* regcache.c: Include <forward_list>.
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;
--
2.9.3