From: Tom Tromey Date: Fri, 12 May 2017 01:44:43 +0000 (-0600) Subject: Replace "return" with "break" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=256afbc259c1e22fafba601a27cf3c8d7bdde417;p=binutils-gdb.git Replace "return" with "break" This replaces a "return" with a "break" in rust_print_subexp, for consistency. ChangeLog 2017-05-12 Tom Tromey * rust-lang.c (rust_print_subexp): Replace "return" with "break". --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7fa037038f2..b4caf1f43d9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-05-12 Tom Tromey + + * rust-lang.c (rust_print_subexp): Replace "return" with "break". + 2017-05-09 Yao Qi * regcache.c: Include . diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index fe8a58cb0f3..dc48ff9dbf7 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;