From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BCCBF385842A; Mon, 4 Sep 2023 17:02:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BCCBF385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693846928; bh=9kf1bCEPTabIOK52p63pCDUqWW0IVoZlmKTgcTdxAtU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=f7TtAnrqiHiZdwBADq99hrnFUw9ylqnQtco+fMOXCiLySlFVV833t9V0bOo9XrdaT YM9q08Yf8wJwleZCPDMQb1+jm/Cfdtz+mU4Lva9FasgmH8Z1BkM+a+feETBQuNavEQ uFjWJe3RRMBcRag5aC1WaXoJlnM8LrWWZbmwYykU= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug python/30816] [meta] Pretty-printing v2 Date: Mon, 04 Sep 2023 17:02:06 +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=3D30816 --- Comment #4 from Tom Tromey --- I think this can probably be done pretty easily. gdb can supply a pretty-printer base class, and then the core can recognize when a printer object is derived from this class, and make any extra calls it likes. With this setup we don't need to change the registration API at all. --=20 You are receiving this mail because: You are on the CC list for the bug.=