From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B1AB3858C33; Thu, 31 Aug 2023 19:24:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B1AB3858C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693509852; bh=LWzoZeeLg1zkr+T9faKaoIp8t5s727x9HV44IhXipCM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=REh9eUcJYe5E8BnJ/J0+QWI5jecx9dyL8wZ+Vu9LMEB5mbXDECUZQ/22o8pfF+N5A KSMn0y7eqYrjm8iDLZGO+0IQi+j8rsTY5MnRZJhhBXvm3sRn0rYRYFZhzuHgkL9GmG 1KvRxN+pVR+5sUxMbp1cG0sTia7fhImrf4zfQlTs= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug python/12806] multi-level pretty-printing Date: Thu, 31 Aug 2023 19:24:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D12806 --- Comment #3 from Tom Tromey --- (In reply to Andre' from comment #1) > Another option would be to move over to the "fat script" approach of pret= ty > printing (i.e. "do all in one go, top-down"). I want to do something that's also relatively useful to DAP. In DAP, the child of a variable may itself be a variable. So separate objects are probably the most straightforward. This is similar to varobj but not as bizarre. A one-shot, full-tree approach loses laziness, which is part of DAP. However it could be done "either direction", either by having an object that hands tearoffs to gdb, or by eagerly iterating over children. --=20 You are receiving this mail because: You are on the CC list for the bug.=