From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2C61D3858C74; Sat, 2 Mar 2024 08:01:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C61D3858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709366496; bh=z8CZ8j3o6zlMchv59CLSYCPQi+TNQ0M5QWwysPFw8ng=; h=From:To:Subject:Date:From; b=AgkqSDpPFZ6woBdU4BE6lDq0jRT9gCNyiUdNebYOocjI4icjdzEHwxmQeWrUm7zHW 7Nr4HiqqmaoQ0Jek/iIucqlqMiLsjHKGjV2Zqts9pjKNykecf92sB2JLlzDcbWFBzb hnZ5dm7mMsed21U0w3q0YkeBnoAw17bfRDXqN5no= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug python/31441] New: [gdb/python] Add gdb.Value.entirely_available and gdb.Value.entirely_unavailable Date: Sat, 02 Mar 2024 08:01:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D31441 Bug ID: 31441 Summary: [gdb/python] Add gdb.Value.entirely_available and gdb.Value.entirely_unavailable Product: gdb Version: HEAD Status: NEW Severity: enhancement Priority: P2 Component: python Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- Before this commit: ... commit bbb12eb9c84aa2b32480b7c022c494c2469ef717 Author: Thiago Jung Bauermann Date: Mon Feb 26 19:11:45 2024 -0300 gdb/arm: Remove tpidruro register from non-FreeBSD target descriptions ... test-case gdb.base/inline-frame-cycle-unwind.exp failed on arm-linux. I managed to write a test-case fix: ... diff --git a/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.py b/gdb/testsuite/gdb.base/inline-frame-cycle-unwind .py index 278fa857d5d..0110fc74276 100644 --- a/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.py +++ b/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.py @@ -65,6 +65,13 @@ class TestUnwinder(Unwinder): for reg in pending_frame.architecture().registers("general"): val =3D pending_frame.read_register(reg) + have_bytes =3D True + try: + val.bytes + except Exception: + have_bytes =3D False + if not have_bytes: + continue unwinder.add_saved_register(reg, val) return unwinder ... which made we wonder why we have gdb.Value.is_optimized_out, but not the is_entirely_available or is_entirely_unavailable variants. --=20 You are receiving this mail because: You are on the CC list for the bug.=