From patchwork Mon Dec 8 22:39:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alastair Robertson X-Patchwork-Id: 4116 Received: (qmail 14172 invoked by alias); 8 Dec 2014 22:39:02 -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 14156 invoked by uid 89); 8 Dec 2014 22:39:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.9 required=5.0 tests=AWL, BAYES_40, KAM_COUK, RCVD_IN_DNSWL_NONE, SPF_FAIL, SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: relay.mailchannels.net Received: from si-002-i157.relay.mailchannels.net (HELO relay.mailchannels.net) (108.178.49.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 08 Dec 2014 22:38:59 +0000 X-Sender-Id: wwwh|x-authuser|alastair@ajor.co.uk Received: from s8-london.accountservergroup.com (ip-10-213-14-133.us-west-2.compute.internal [10.213.14.133]) by relay.mailchannels.net (Postfix) with ESMTPA id D2DCB60679 for ; Mon, 8 Dec 2014 22:38:51 +0000 (UTC) X-Sender-Id: wwwh|x-authuser|alastair@ajor.co.uk Received: from s8-london.accountservergroup.com (s8-london.accountservergroup.com [10.253.8.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:2500 (trex/5.4.2); Mon, 08 Dec 2014 22:38:52 GMT X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|alastair@ajor.co.uk X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1418078332202:1515968424 X-MC-Ingress-Time: 1418078332202 Received: from cpc2-acto2-2-0-cust33.4-2.cable.virginm.net ([86.1.72.34]:58841 helo=arch) by s8-london.accountservergroup.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1Xy6x8-0006YV-1J for gdb-patches@sourceware.org; Mon, 08 Dec 2014 22:38:50 +0000 Date: Mon, 8 Dec 2014 22:39:58 +0000 From: Alastair Robertson To: gdb-patches@sourceware.org Subject: [PATCH] Printing of large objects not interruptable Message-ID: <20141208223958.4de115f7@arch> MIME-Version: 1.0 X-AuthUser: alastair@ajor.co.uk X-IsSubscribed: yes This patch makes the counting of repeated characters interruptable, relating to bug 17613 https://sourceware.org/bugzilla/show_bug.cgi?id=17613 This is my first patch, so sorry if I forgot to include something or didn't format it correctly. 2014-12-07 Alastair Robertson PR gdb/17613 * valprint.c (count_next_character): Call QUIT diff --git a/gdb/valprint.c b/gdb/valprint.c index b995304..8d743b1 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -2151,6 +2151,8 @@ count_next_character (struct wchar_iterator *iter, while (1) { + QUIT; + /* Get the next character. */ d.num_chars = wchar_iterate (iter, &d.result, &chars, &d.buf, &d.buflen);