public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/30489] New: gdb.Type.template_argument issue when using __int128 unsigned
@ 2023-05-25 13:45 werwolv98 at gmail dot com
  2023-05-25 16:03 ` [Bug python/30489] " tromey at sourceware dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: werwolv98 at gmail dot com @ 2023-05-25 13:45 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30489
           Summary: gdb.Type.template_argument issue when using __int128
                    unsigned
           Product: gdb
           Version: 13.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: werwolv98 at gmail dot com
  Target Milestone: ---

Using the default libstdc++ pretty printer that ships with GCC 13.1, GDB fails
to parse the template types of `std::variant` (and others) as soon as one of
the template types used is a `__int128 unsigned`.

The pretty printer seems to use `Type.template_argument(n)` under the hood
which throws a `RuntimeError: syntax error` if one of the types is a unsigned
int128 type. This leads to GDB not printing the template types and acts as if
the variant contains no value.


```
std::variant<__uint128_t, int> a;
std::variant<__int128_t, int> b;
```

```
(gdb) print a
$1 = std::variant<> [no contained value]
(gdb) print b
$2 = std::variant<__int128, int> [index 0] = {0}

```

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

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

end of thread, other threads:[~2023-05-26 21:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-25 13:45 [Bug python/30489] New: gdb.Type.template_argument issue when using __int128 unsigned werwolv98 at gmail dot com
2023-05-25 16:03 ` [Bug python/30489] " tromey at sourceware dot org
2023-05-26  6:18 ` werwolv98 at gmail dot com
2023-05-26 19:28 ` tromey at sourceware dot org
2023-05-26 21:23 ` tromey 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).