public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/25926] New: info on vector registers should also display 64bit integer type
@ 2020-05-05 20:52 pc at us dot ibm.com
  2024-01-05 13:17 ` [Bug gdb/25926] " ssbssa at sourceware dot org
  0 siblings, 1 reply; 2+ messages in thread
From: pc at us dot ibm.com @ 2020-05-05 20:52 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 25926
           Summary: info on vector registers should also display 64bit
                    integer type
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: pc at us dot ibm.com
  Target Milestone: ---

Current gdb (8.3.1.20191211-git) does not display 64bit integer values for
vector registers:
--
(gdb) info reg $vs32
vs32           {uint128 = 0xffffffffffffffffffffffffffffffaa, v2_double = {0x0,
0x0}, v4_float = {0x0, 0x0, 0x0, 0x0}, v4_int32 = {0xffffffaa, 0xffffffff,
0xffffffff, 0xffffffff}, v8_int16 = {0xffaa, 0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff}, v16_int8 = {0xaa, 0xff <repeats 15 times>}}
--
This report is to request including in the above output something like:
v2_int64 = {0xffffffffffffffaa, 0xffffffffffffffff}

-- 
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 gdb/25926] info on vector registers should also display 64bit integer type
  2020-05-05 20:52 [Bug gdb/25926] New: info on vector registers should also display 64bit integer type pc at us dot ibm.com
@ 2024-01-05 13:17 ` ssbssa at sourceware dot org
  0 siblings, 0 replies; 2+ messages in thread
From: ssbssa at sourceware dot org @ 2024-01-05 13:17 UTC (permalink / raw)
  To: gdb-prs

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

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at sourceware dot org

--- Comment #1 from Hannes Domani <ssbssa at sourceware dot org> ---
I can't test it, but it should be as simple as this:
```
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -2454,6 +2454,8 @@ rs6000_builtin_type_vec128 (struct gdbarch *gdbarch)
       append_composite_type_field (t, "uint128", bt->builtin_uint128);
       append_composite_type_field (t, "v2_double",
                                   init_vector_type (bt->builtin_double, 2));
+      append_composite_type_field (t, "v2_int64",
+                                  init_vector_type (bt->builtin_int64, 2));
       append_composite_type_field (t, "v4_float",
                                   init_vector_type (bt->builtin_float, 4));
       append_composite_type_field (t, "v4_int32",
```

-- 
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-01-05 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 20:52 [Bug gdb/25926] New: info on vector registers should also display 64bit integer type pc at us dot ibm.com
2024-01-05 13:17 ` [Bug gdb/25926] " ssbssa at sourceware dot org

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