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

* [Bug gdb/30446] Wrong raw v0 register value on aarch64
  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 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: luis.machado at arm dot com @ 2023-05-31  9:46 UTC (permalink / raw)
  To: gdb-prs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luis.machado at arm dot com

--- Comment #1 from Luis Machado <luis.machado at arm dot com> ---
Hi,

Do you have a reproducer for this? I tried to setup a testcase and set the
values based on your post, but I get correct results.

-data-list-register-values --thread 1 --frame 0 --skip-unavailable r 34

^done,register-values=[{number="34",value="{d = {f = {0x2f2f2f2f2f2f2f2f,
0x2f2f2f2f2f2f2f2f}, u = {0x2f2f2f2f2f2f2f2f, 0x2f2f2f2f2f2f2f2f}, s =
{0x2f2f2f2f2f2f2f2f, 0x2f2f2f2f2f2f2f2f}}, s = {f = {0x2f2f2f2f, 0x2f2f2f2f,
0x2f2f2f2f, 0x2f2f2f2f}, u = {0x2f2f2f2f, 0x2f2f2f2f, 0x2f2f2f2f, 0x2f2f2f2f},
s = {0x2f2f2f2f, 0x2f2f2f2f, 0x2f2f2f2f, 0x2f2f2f2f}}, h = {bf = {0x2f2f,
0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f}, f = {0x2f2f, 0x2f2f,
0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f}, u = {0x2f2f, 0x2f2f, 0x2f2f,
0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f}, s = {0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f,
0x2f2f, 0x2f2f, 0x2f2f, 0x2f2f}}, b = {u = {0x2f <repeats 16 times>}, s = {0x2f
<repeats 16 times>}}, q = {u = {0x2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f}, s =
{0x2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f2f}}}"}]
(gdb)

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

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

* [Bug gdb/30446] Wrong raw v0 register value on aarch64
  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
  2 siblings, 0 replies; 4+ messages in thread
From: dmitry.neverov at jetbrains dot com @ 2023-06-01  8:18 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Dmitry Neverov <dmitry.neverov at jetbrains dot com> ---
Sorry, I didn't check gdb version before reporting. It reproduces in gdb 9.2,
but works fine in 12.1. Please close the issue.

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

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

* [Bug gdb/30446] Wrong raw v0 register value on aarch64
  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
  2 siblings, 0 replies; 4+ messages in thread
From: luis.machado at arm dot com @ 2023-06-02  5:35 UTC (permalink / raw)
  To: gdb-prs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |OBSOLETE

--- Comment #3 from Luis Machado <luis.machado at arm dot com> ---
No problem. Thanks for checking.

-- 
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).