From patchwork Tue Apr 25 19:41:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 20147 Received: (qmail 22388 invoked by alias); 25 Apr 2017 19:41:36 -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 22206 invoked by uid 89); 25 Apr 2017 19:41:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.5 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= X-HELO: gproxy7-pub.mail.unifiedlayer.com Received: from gproxy7-pub.mail.unifiedlayer.com (HELO gproxy7-pub.mail.unifiedlayer.com) (70.40.196.235) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Tue, 25 Apr 2017 19:41:34 +0000 Received: (qmail 22685 invoked by uid 0); 25 Apr 2017 19:41:34 -0000 Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy7.mail.unifiedlayer.com with SMTP; 25 Apr 2017 19:41:34 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by cmgw2 with id CjhX1v00R2f2jeq01jhac4; Tue, 25 Apr 2017 13:41:34 -0600 X-Authority-Analysis: v=2.2 cv=Ibz3YSia c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=AzvcPWV-tVgA:10 a=zstS-IiYAAAA:8 a=UjZ1UblZWeUHeQglA5AA:9 a=4G6NA9xxw8l3yy4pmD5M:22 Received: from 75-166-63-71.hlrn.qwest.net ([75.166.63.71]:40598 helo=bapiya.Home) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1d36L5-0000OG-BW; Tue, 25 Apr 2017 13:41:31 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 09/10] Return EXT_LANG_BT_ERROR in one more spot in py-framefilter.c Date: Tue, 25 Apr 2017 13:41:12 -0600 Message-Id: <20170425194113.17862-10-tom@tromey.com> In-Reply-To: <20170425194113.17862-1-tom@tromey.com> References: <20170425194113.17862-1-tom@tromey.com> X-BWhitelist: no X-Exim-ID: 1d36L5-0000OG-BW X-Source-Sender: 75-166-63-71.hlrn.qwest.net (bapiya.Home) [75.166.63.71]:40598 X-Source-Auth: tom+tromey.com X-Email-Count: 10 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== While reading py-framefilter.c, I found one spot where an exception could be caught but then not be turned into EXT_LANG_BT_ERROR. This patch fixes this spot. ChangeLog 2017-04-25 Tom Tromey * python/py-framefilter.c (py_print_single_arg): Return EXT_LANG_BT_ERROR from catch. --- gdb/ChangeLog | 5 +++++ gdb/python/py-framefilter.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index db6dccf..b6c3f40 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2017-04-25 Tom Tromey + * python/py-framefilter.c (py_print_single_arg): Return + EXT_LANG_BT_ERROR from catch. + +2017-04-25 Tom Tromey + PR backtrace/15584: * stack.c (backtrace_command_1): Move some code into no-filters "if". diff --git a/gdb/python/py-framefilter.c b/gdb/python/py-framefilter.c index 76e637c..73f2a31 100644 --- a/gdb/python/py-framefilter.c +++ b/gdb/python/py-framefilter.c @@ -457,6 +457,7 @@ py_print_single_arg (struct ui_out *out, CATCH (except, RETURN_MASK_ERROR) { gdbpy_convert_exception (except); + retval = EXT_LANG_BT_ERROR; } END_CATCH