gdb/python: add Type.is_scalar property

Add a new read-only property which is True for scalar types,
otherwise, it's False.
This commit is contained in:
Andrew Burgess
2022-02-25 10:54:04 +00:00
parent 6fd90137e7
commit ee6a3d9e94
5 changed files with 65 additions and 1 deletions

View File

@ -1263,6 +1263,12 @@ The @code{gdb.Objfile} that this type was defined in, or @code{None} if
there is no associated objfile.
@end defvar
@defvar Type.is_scalar
This property is @code{True} if the type is a scalar type, otherwise,
this property is @code{False}. Examples of non-scalar types include
structures, unions, and classes.
@end defvar
The following methods are provided:
@defun Type.fields ()