From patchwork Fri May 12 15:00:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 20426 Received: (qmail 68488 invoked by alias); 12 May 2017 15:01:07 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 68325 invoked by uid 89); 12 May 2017 15:01:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=H*MI:sk:2017051 X-HELO: gproxy6.mail.unifiedlayer.com Received: from gproxy6-pub.mail.unifiedlayer.com (HELO gproxy6.mail.unifiedlayer.com) (67.222.39.168) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 12 May 2017 15:01:04 +0000 Received: from CMOut01 (unknown [10.0.90.82]) by gproxy6.mail.unifiedlayer.com (Postfix) with ESMTP id 3586A1E09B7 for ; Fri, 12 May 2017 09:01:03 -0600 (MDT) Received: from box522.bluehost.com ([74.220.219.122]) by CMOut01 with id KT0z1v01C2f2jeq01T12Ey; Fri, 12 May 2017 09:01:03 -0600 X-Authority-Analysis: v=2.2 cv=K+5SJ2eI c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=tJ8p9aeEuA8A:10 a=zstS-IiYAAAA:8 a=KKAkSRfTAAAA:8 a=Qk3hVXpkfY-k-WSkoJIA:9 a=4G6NA9xxw8l3yy4pmD5M:22 a=cvBusfyB2V15izCimMoJ:22 Received: from 75-166-63-71.hlrn.qwest.net ([75.166.63.71]:52762 helo=bapiya.Home) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1d9C3v-0003el-On; Fri, 12 May 2017 09:00:59 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [FYI 1/3] Replace "return" with "break" Date: Fri, 12 May 2017 09:00:53 -0600 Message-Id: <20170512150055.27230-2-tom@tromey.com> In-Reply-To: <20170512150055.27230-1-tom@tromey.com> References: <20170512150055.27230-1-tom@tromey.com> X-BWhitelist: no X-Exim-ID: 1d9C3v-0003el-On X-Source-Sender: 75-166-63-71.hlrn.qwest.net (bapiya.Home) [75.166.63.71]:52762 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== 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". --- 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 + + * 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 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;