From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26904 invoked by alias); 14 Aug 2017 03:41:29 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 5213 invoked by uid 89); 14 Aug 2017 03:40:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: gproxy2-pub.mail.unifiedlayer.com Received: from gproxy2-pub.mail.unifiedlayer.com (HELO gproxy2-pub.mail.unifiedlayer.com) (69.89.18.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 14 Aug 2017 03:40:45 +0000 Received: from CMOut01 (unknown [10.0.90.82]) by gproxy2.mail.unifiedlayer.com (Postfix) with ESMTP id 747B61E0A6A for ; Sun, 13 Aug 2017 21:40:44 -0600 (MDT) Received: from box522.bluehost.com ([74.220.219.122]) by CMOut01 with id wrgh1v0062f2jeq01rgkBk; Sun, 13 Aug 2017 21:40:44 -0600 X-Authority-Analysis: v=2.2 cv=FrR1xyjq c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=KeKAF7QvOSUA:10 a=zstS-IiYAAAA:8 a=RfMjF9QfvpJU3IL3_SsA:9 a=4G6NA9xxw8l3yy4pmD5M:22 Received: from 75-166-24-97.hlrn.qwest.net ([75.166.24.97]:55932 helo=bapiya.Home) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1dh6F7-0025eE-8C; Sun, 13 Aug 2017 21:40:41 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA v2 10/13] Call wrap_hint in one more spot in py-framefilter.c Date: Mon, 14 Aug 2017 03:41:00 -0000 Message-Id: <20170814034030.20863-11-tom@tromey.com> In-Reply-To: <20170814034030.20863-1-tom@tromey.com> References: <20170814034030.20863-1-tom@tromey.com> X-BWhitelist: no X-Exim-ID: 1dh6F7-0025eE-8C X-Source-Sender: 75-166-24-97.hlrn.qwest.net (bapiya.Home) [75.166.24.97]:55932 X-Source-Auth: tom+tromey.com X-Email-Count: 11 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-Local-Domain: yes X-SW-Source: 2017-08/txt/msg00282.txt.bz2 PR python/16486 notes that "bt" output is still wrapped differently when a frame filter is in use. This patch brings it a bit closer by adding one more wrap_hint call, in a place where stack.c does this as well. ChangeLog 2017-08-13 Tom Tromey PR python/16486: * python/py-framefilter.c (py_print_args): Call wrap_hint. --- gdb/ChangeLog | 5 +++++ gdb/python/py-framefilter.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e5aeb22..9af53f8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2017-08-13 Tom Tromey + PR python/16486: + * python/py-framefilter.c (py_print_args): Call wrap_hint. + +2017-08-13 Tom Tromey + * python/py-framefilter.c (py_print_single_arg): Return EXT_LANG_BT_ERROR from catch. diff --git a/gdb/python/py-framefilter.c b/gdb/python/py-framefilter.c index 73f2a31..7114030 100644 --- a/gdb/python/py-framefilter.c +++ b/gdb/python/py-framefilter.c @@ -864,6 +864,7 @@ py_print_args (PyObject *filter, TRY { + out->wrap_hint (" "); annotate_frame_args (); if (! out->is_mi_like_p ()) out->text (" ("); -- 2.9.4