[Bug python/22424] gdb.lookup_type fails for Fortran
tromey at sourceware dot org via Gdb-prs <[email protected]>
| Newsgroups | gmane.comp.gdb.bugs.discuss |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://sourceware.org/bugzilla/show_bug.cgi?id=22424
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2026-06-18
Ever confirmed|0 |1
CC| |tromey at sourceware dot org
Status|UNCONFIRMED |NEW
Component|fortran |python
--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
> Is there any progress regarding this bug? E.g. general progress on the Fortran support?
Nope.
I looked briefly and I think the issue is that the type-printing
code prints:
>>> str(gdb.parse_and_eval('foo').type)
'Type my_type'
However lookups only work without that weird "Type" prefix:
>>> gdb.lookup_type('my_type')
<gdb.Type code=TYPE_CODE_STRUCT name=Type my_type>
I don't know Fortran so I don't know why "Type" is added there.
--
You are receiving this mail because:
You are on the CC list for the bug.