mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
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.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
2018-04-30 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* python.texi (Types In Python): Document Type.align.
|
||||
|
||||
2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||
|
||||
* gdb.texinfo (Symbols): Mention the fact that "info
|
||||
|
@ -930,6 +930,13 @@ description of the @code{Type.fields} method for a description of the
|
||||
|
||||
An instance of @code{Type} has the following attributes:
|
||||
|
||||
@defvar Type.alignof
|
||||
The alignment of this type, in bytes. Type alignment comes from the
|
||||
debugging information; if it was not specified, then @value{GDBN} will
|
||||
use the relevant ABI to try to determine the alignment. In some
|
||||
cases, even this is not possible, and zero will be returned.
|
||||
@end defvar
|
||||
|
||||
@defvar Type.code
|
||||
The type code for this type. The type code will be one of the
|
||||
@code{TYPE_CODE_} constants defined below.
|
||||
|
Reference in New Issue
Block a user