From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 36C463853837; Mon, 31 Oct 2022 14:59:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36C463853837 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667228393; bh=Vet0COxy5IGZYjtGTro64MiMF6FfGLjC2M040jVfh7E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=j4JrESaTJaZCQtUrhHn39OhoYe5UDAOZ474MtgfpKVqkSlxoUt1de5i5LeX7DLUYw gIGbcgzi9b/WnYuMt7A4VwsOxtI94S7dfP1V8w9OpvcPiGUVTYPAkh7oCeM/fOzNFM 0E1VMCThuP5B0S//qg9S0AzDC0ueqXa/9Syqp95M= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug c++/29243] infinite loop in generic_value_print Date: Mon, 31 Oct 2022 14:59:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot org X-Bugzilla-Target-Milestone: 13.1 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=3D29243 --- Comment #7 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D864304973379= 68e6163aef370c6312e7b5ed6504 commit 86430497337968e6163aef370c6312e7b5ed6504 Author: Tom Tromey Date: Tue Oct 18 11:32:52 2022 -0600 Fix regression in pointer-to-member printing PR c++/29243 points out that "info func" on a certain C++ executable will cause an infinite loop in gdb. I tracked this down to a bug introduced by commit 6b5a7bc76 ("Handle member pointers directly in generic_value_print"). Before this commit, the C++ code to print a member pointer would wind up calling value_print_scalar_formatted; but afterward it simply calls generic_value_print and gets into a loop. This patch restores the previous behavior and adds a regression test. --=20 You are receiving this mail because: You are on the CC list for the bug.=