From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20243 invoked by alias); 17 Nov 2014 20:00:59 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 20217 invoked by uid 48); 17 Nov 2014 20:00:58 -0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/17613] printing of large objects not interruptable Date: Mon, 17 Nov 2014 20:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.8 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q4/txt/msg00275.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17613 --- Comment #1 from dje at google dot com --- I think what's taking awhile and is uninterruptable is computing repeated elements. The computation proceeds passed "print elements". E.g., change foo to 1M bytes and it still takes awhile, but it completes without taking "forever". (gdb) set debug target 1 (gdb) p *p target_thread_address_space (process 12972) = 1 native:target_xfer_partial (2, (null), 0x2dd1610, 0x0, 0x401ba8, 8) = 1, 8, bytes = 10 10 60 f7 ff 7f 00 00 native:target_xfer_partial (2, (null), 0x7f63eadcc010, 0x0, 0x7ffff7601010, 1048576) = 1, 1048576, bytes = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... $1 = { [long uninterruptible pause here] foo = '\000' } (gdb) Then if I change foo to contain random text (but leave it still 1GB in size) up to "print elements" (default = 200) then it completes reasonably quickly. -- You are receiving this mail because: You are on the CC list for the bug.