public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "dmitry.neverov at jetbrains dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/30446] New: Wrong raw v0 register value on aarch64
Date: Mon, 15 May 2023 07:28:00 +0000	[thread overview]
Message-ID: <bug-30446-4717@http.sourceware.org/bugzilla/> (raw)

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.

             reply	other threads:[~2023-05-15  7:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-15  7:28 dmitry.neverov at jetbrains dot com [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30446-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).