From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 952AB3858C52; Wed, 28 Feb 2024 09:58:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 952AB3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709114286; bh=2WLyjNP5LIPE0NQeBzQ9A/VGEqwRbEzz7WhqJvQcTHE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NXJbyR3cbC9H9+nqiMk3PA6FJ3mkiVY8U/DKudUWWUvI0zfEp2Q9DFPnbfBUPgwKd Krq3X5zxefbBnkRKAJdqADZ2+6W8JP8Nyu+jPJfQpjmXRqTS5ogDgeGWihZKddLRSJ ybHOgTh9w3SGTIKxn4GcuwhqqhR9KKwwrAiBlaL0= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug python/31425] [gdb/python, 3.12] FAIL: gdb.python/py-block.exp: check nonexistent variable Date: Wed, 28 Feb 2024 09:58:05 +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: vries at gcc dot gnu.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=3D31425 --- Comment #3 from Tom de Vries --- With python 3.6, the value that is set using PyErr_SetObject: ... (gdb) p PyObject_Print(value, stderr, 0) 'nonexistent'$1 =3D 0 (gdb) p PyObject_Print(value, stderr, 1) nonexistent$2 =3D 0 ... is the same as is fetch using PyErr_Fetch: ... (gdb) p PyObject_Print(error_value, stderr, 0) 'nonexistent'$3 =3D 0 (gdb) p PyObject_Print(error_value, stderr, 1) nonexistent$4 =3D 0 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=