From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 64F843858C32; Fri, 22 Mar 2024 15:00:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 64F843858C32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711119643; bh=GkKT9XpfaMMAmpt1I5q49pAanRyDd6IhigeqTuPlUIs=; h=From:To:Subject:Date:From; b=vCZZ/85KwQa8rVFKd9aiHwSQvjOAyjrCH45FbF9CioNgZU8aymttIRamWxvrlaI34 z47MbHJnvygS6PJV3YQvlPO6ufp6XhSZgqyMlWqHaEOyzNijlCK/6mTq74Cg+w+Y8p fS0cGMxWYkNQK/uwflCYStXppl6W2nr3ysSnIZJU= From: "luis.machado at arm dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/31531] New: [aarch64,sme] gdb doesn't restore the vg register properly when dealing with streaming functions Date: Fri, 22 Mar 2024 15:00:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: luis.machado at arm dot com 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=3D31531 Bug ID: 31531 Summary: [aarch64,sme] gdb doesn't restore the vg register properly when dealing with streaming functions Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: luis.machado at arm dot com Target Milestone: --- When gdb is dealing with streaming functions, the vg register (the vector length) will change its value to that of the svg register. If the vg and svg registers differ, when gdb attempts to unwind from a streaming function through a non-streaming function, the frame with the non-streaming function will contain the wrong vg register value. If we have variables tied to the vg register value in the non-streaming fra= me, gdb will display their contents incorrectly. gdb needs to recognize vg was saved and follow the CFI rules to restore it. --=20 You are receiving this mail because: You are on the CC list for the bug.=