From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B28053858C78; Thu, 31 Aug 2023 16:20:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B28053858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693498853; bh=zmlvjZ0zDQt32IH2OPLWDdo8TbscSCbUT+thfgdTGsc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QhI0bT1gVLOYO5tgpy0uesamu1ZM3aV2BX7MB+kPo3nm1qnDKK4JlufNDjQyuHPrB fEauXYPzNv7qe514YbxMAf3PcufQY518fc5DT1P7fz5qQ8PcHoOUI3RB3pjHHmJgZU 5g/YR/2i1eRrt603N7u/4wzInJ5q7DzjTuFlMMBM= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug python/17152] when python pretty printer is used watch command prints new value in the old value filed Date: Thu, 31 Aug 2023 16:20:52 +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: 7.7 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution cc 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=3D17152 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED CC| |tromey at sourceware dot o= rg --- Comment #5 from Tom Tromey --- This works for me now: Old value =3D (0,0,0,0,) New value =3D (72,101,0,0,) However, I suspect the bug was that the array value was lazy, and not resolved until too late. The fix in these cases is to call fetch_lazy in the pretty-printer constructor. --=20 You are receiving this mail because: You are on the CC list for the bug.=