public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/31531] New: [aarch64,sme] gdb doesn't restore the vg register properly when dealing with streaming functions
@ 2024-03-22 15:00 luis.machado at arm dot com
  2024-03-22 15:02 ` [Bug tdep/31531] " luis.machado at arm dot com
  0 siblings, 1 reply; 2+ messages in thread
From: luis.machado at arm dot com @ 2024-03-22 15:00 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31531

            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 frame,
gdb will display their contents incorrectly.

gdb needs to recognize vg was saved and follow the CFI rules to restore it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug tdep/31531] [aarch64,sme] gdb doesn't restore the vg register properly when dealing with streaming functions
  2024-03-22 15:00 [Bug gdb/31531] New: [aarch64,sme] gdb doesn't restore the vg register properly when dealing with streaming functions luis.machado at arm dot com
@ 2024-03-22 15:02 ` luis.machado at arm dot com
  0 siblings, 0 replies; 2+ messages in thread
From: luis.machado at arm dot com @ 2024-03-22 15:02 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31531

Luis Machado <luis.machado at arm dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |aarch64-*
          Component|gdb                         |tdep

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-22 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-22 15:00 [Bug gdb/31531] New: [aarch64,sme] gdb doesn't restore the vg register properly when dealing with streaming functions luis.machado at arm dot com
2024-03-22 15:02 ` [Bug tdep/31531] " luis.machado at arm dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).