From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 324EE3858C27; Thu, 3 Feb 2022 21:15:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 324EE3858C27 From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug python/28856] Python pretty printer causes stack overflow when printing frame arguments Date: Thu, 03 Feb 2022 21:15:26 +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: ssbssa at sourceware dot org X-Bugzilla-Status: UNCONFIRMED 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Feb 2022 21:15:27 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28856 --- Comment #3 from Hannes Domani --- (In reply to Jonathan Wakely from comment #2) > Should I not be even attempting to use gdb.parse_and_eval('$__cat->name()= ') > like that in a printer? Is there a better way to call a virtual member > function given a pointer to a polymorphic object? If you need to call it, then I don't think there is a better way. I would only use a function call in a pretty printer if there is no way to avoid it, even more so because it wouldn't work for core files. --=20 You are receiving this mail because: You are on the CC list for the bug.=