Expose type alignment on gdb.Type
authorTom Tromey <tom@tromey.com>
Fri, 20 Apr 2018 21:43:56 +0000 (15:43 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 30 Apr 2018 17:25:31 +0000 (11:25 -0600)
commit6d7bb8246b3beaf60ea9c2abe183705e876519cd
tree57eeee53543aa1091d282fc6ffe553902446b706
parent007e1530347330d4dbba387c4e35aae05bc06498
Expose type alignment on gdb.Type

This adds an "alignof" attribute to gdb.Type in the Python API.

2018-04-30  Tom Tromey  <tom@tromey.com>

* NEWS: Mention Type.align.
* python/py-type.c (typy_get_alignof): New function.
(type_object_getset): Add "alignof".

2018-04-30  Tom Tromey  <tom@tromey.com>

* python.texi (Types In Python): Document Type.align.

2018-04-30  Tom Tromey  <tom@tromey.com>

* gdb.python/py-type.exp: Check align attribute.
* gdb.python/py-type.c: New "aligncheck" global.
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/python.texi
gdb/python/py-type.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-type.c
gdb/testsuite/gdb.python/py-type.exp
This page took 0.027146 seconds and 4 git commands to generate.