aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-02-25 10:54:04 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-03-07 19:42:07 +0000
commitee6a3d9e9496d469986a192aa374a43dffa83f96 (patch)
tree50ac979957042eaea384c1bd4a6055447e8cebdc /gdb/doc
parent6fd90137e776c1a29f75651af8e7a129337254c7 (diff)
downloadfsf-binutils-gdb-ee6a3d9e9496d469986a192aa374a43dffa83f96.zip
fsf-binutils-gdb-ee6a3d9e9496d469986a192aa374a43dffa83f96.tar.gz
fsf-binutils-gdb-ee6a3d9e9496d469986a192aa374a43dffa83f96.tar.bz2
gdb/python: add Type.is_scalar property
Add a new read-only property which is True for scalar types, otherwise, it's False.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/python.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index 4d9e77b..2a7a4e8 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -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 ()