This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/21257] New: gdb.Type.name is empty for pointer/array types
- From: "simon.marchi at ericsson dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 16 Mar 2017 17:55:14 +0000
- Subject: [Bug python/21257] New: gdb.Type.name is empty for pointer/array types
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21257
Bug ID: 21257
Summary: gdb.Type.name is empty for pointer/array types
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: simon.marchi at ericsson dot com
Target Milestone: ---
>>> gdb.lookup_type('int').name
'int'
>>> gdb.lookup_type('int').pointer().name
>>> gdb.lookup_type('int').array(5).name
The later two commands return None. It seems to me like they should return
'int *' and 'int [5]' respectively.
--
You are receiving this mail because:
You are on the CC list for the bug.