From patchwork Tue Apr 25 19:41:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 20144 Received: (qmail 22228 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 22120 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=-24.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=Hx-languages-length:1215 X-HELO: gproxy9.mail.unifiedlayer.com Received: from gproxy9-pub.mail.unifiedlayer.com (HELO gproxy9.mail.unifiedlayer.com) (69.89.20.122) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 25 Apr 2017 19:41:34 +0000 Received: from cmgw3 (unknown [10.0.90.84]) by gproxy9.mail.unifiedlayer.com (Postfix) with ESMTP id D97DA1E0968 for ; Tue, 25 Apr 2017 13:41:34 -0600 (MDT) Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id CjhX1v00n2f2jeq01jharT; Tue, 25 Apr 2017 13:41:34 -0600 X-Authority-Analysis: v=2.2 cv=VKStp5HX c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=AzvcPWV-tVgA:10 a=zstS-IiYAAAA:8 a=RfMjF9QfvpJU3IL3_SsA: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-LQ; Tue, 25 Apr 2017 13:41:31 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 10/10] Call wrap_hint in one more spot in py-framefilter.c Date: Tue, 25 Apr 2017 13:41:13 -0600 Message-Id: <20170425194113.17862-11-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-LQ 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: 11 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== 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-04-25 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 b6c3f40..406b561 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2017-04-25 Tom Tromey + PR python/16486: + * python/py-framefilter.c (py_print_args): Call wrap_hint. + +2017-04-25 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 (" (");