public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/30446] New: Wrong raw v0 register value on aarch64
@ 2023-05-15  7:28 dmitry.neverov at jetbrains dot com
  2023-05-31  9:46 ` [Bug gdb/30446] " luis.machado at arm dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dmitry.neverov at jetbrains dot com @ 2023-05-15  7:28 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30446
           Summary: Wrong raw v0 register value on aarch64
           Product: gdb
           Version: 13.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: dmitry.neverov at jetbrains dot com
  Target Milestone: ---

When evaluating $v0, gdb/mi returns:

-data-list-register-values --thread 1 --frame 0 --skip-unavailable r 34
^done,register-values=[{number="34",value="{d = {f = {0x0000000000000000,
0x0000000000000000}, u = {0x2f2f2f2f2f2f2f2f, 0x2f2f2f2f2f2f2f2f}, s =
{0x2f2f2f2f2f2f2f2f, 0x2f2f2f2f2f2f2f2f}}, s = {f = {0x00000000, 0x00000000,
0x00000000, 0x00000000}, u = {0x2f2f2f2f, 0x2f2f2f2f, 0x2f2f2f2f, 0x2f2f2f2f},
s = {0x2f2f2f2f, 0x2f2f2f2f, 0x2f2f2f2f, 0x2f2f2f2f}}, h = {f = {0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000}, u = {0x2f2f, 0x2f2f,
0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f}, s = {0x2f2f, 0x2f2f, 0x2f2f,
0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f}}, b = {u = {0x2f, 0x2f, 0x2f, 0x2f,
0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f}, s =
{0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f,
0x2f, 0x2f, 0x2f}}, q = {u = {0x2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f}, s =
{0x2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f}}}"}]

The first member in the union is itself a union with 3 members:

d = {f = {0x0000000000000000, 0x0000000000000000}, u = {0x2f2f2f2f2f2f2f2f,
0x2f2f2f2f2f2f2f2f}, s = {0x2f2f2f2f2f2f2f2f, 0x2f2f2f2f2f2f2f2f}}

The first member (f) has a different raw value comparing to 'u' and 's'. This
seems to be a bug, since the command asked for a raw value which should be the
same for all union members.

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

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

end of thread, other threads:[~2023-06-02  5:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-15  7:28 [Bug gdb/30446] New: Wrong raw v0 register value on aarch64 dmitry.neverov at jetbrains dot com
2023-05-31  9:46 ` [Bug gdb/30446] " luis.machado at arm dot com
2023-06-01  8:18 ` dmitry.neverov at jetbrains dot com
2023-06-02  5:35 ` 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).