Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Alastair Robertson <alastair@ajor.co.uk>
To: gdb-patches@sourceware.org
Subject: [PATCH] Printing of large objects not interruptable
Date: Mon, 08 Dec 2014 22:39:00 -0000	[thread overview]
Message-ID: <20141208223958.4de115f7@arch> (raw)

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  <alastair@ajor.co.uk>

	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);


             reply	other threads:[~2014-12-08 22:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-08 22:39 Alastair Robertson [this message]
2014-12-20 17:18 ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141208223958.4de115f7@arch \
    --to=alastair@ajor.co.uk \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox