public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/21257] gdb.Type.name is empty for pointer/array types
       [not found] <bug-21257-4717@http.sourceware.org/bugzilla/>
@ 2022-06-05 14:26 ` tromey at sourceware dot org
  0 siblings, 0 replies; only message in thread
From: tromey at sourceware dot org @ 2022-06-05 14:26 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

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

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
The docs should probably be clarified here.
The name is just if the type has been given a name.
In C there isn't even a way to do this for a pointer type
(you can typedef but then you get a typedef whose target
type is the pointer type).

You can get what you want here using str(type).

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-05 14:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-21257-4717@http.sourceware.org/bugzilla/>
2022-06-05 14:26 ` [Bug python/21257] gdb.Type.name is empty for pointer/array types 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).