This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/21257] New: gdb.Type.name is empty for pointer/array types


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]