From 6d7bb8246b3beaf60ea9c2abe183705e876519cd Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 20 Apr 2018 15:43:56 -0600 Subject: Expose type alignment on gdb.Type This adds an "alignof" attribute to gdb.Type in the Python API. 2018-04-30 Tom Tromey * NEWS: Mention Type.align. * python/py-type.c (typy_get_alignof): New function. (type_object_getset): Add "alignof". 2018-04-30 Tom Tromey * python.texi (Types In Python): Document Type.align. 2018-04-30 Tom Tromey * gdb.python/py-type.exp: Check align attribute. * gdb.python/py-type.c: New "aligncheck" global. --- gdb/NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/NEWS') diff --git a/gdb/NEWS b/gdb/NEWS index 6631b53..6193070 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -27,6 +27,10 @@ set|show record btrace cpu Controls the processor to be used for enabling errata workarounds for branch trace decode. +* Python API + + ** Type alignment is now exposed via the "align" attribute of a gdb.Type. + * New targets RiscV ELF riscv*-*-elf -- cgit v1.1