summaryrefslogtreecommitdiff
path: root/gdb/doc/python.texi
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2019-02-16 18:31:51 -0700
committerKevin Buettner <kevinb@redhat.com>2019-02-26 10:28:05 -0700
commitaf54ade989cbbb1a43f4bc9d4d2e8e60814306f1 (patch)
tree0bc4254abd747724800adeb0b4a8aaabb6f5e0cb /gdb/doc/python.texi
parentbc2a507e6e90fc5766bd68d368441f5b511c2ef1 (diff)
downloadbinutils-gdb-af54ade989cbbb1a43f4bc9d4d2e8e60814306f1.tar.gz
Document two argument form of gdb.Value constructor
gdb/ChangeLog: * NEWS: Mention two argument form of gdb.Value constructor. gdb/doc/ChangeLog: * python.texi (Values From Inferior): Document second form of Value.__init__.
Diffstat (limited to 'gdb/doc/python.texi')
-rw-r--r--gdb/doc/python.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index 2860361c333..7f6f52c4df6 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -735,6 +735,14 @@ its result is used.
@end table
@end defun
+@defun Value.__init__ (@var{val}, @r{[}, type @r{]})
+This second form of the @code{gdb.Value} constructor returns a
+@code{gdb.Value} of type @var{type} where the value contents are taken
+from the Python buffer object specified by @var{val}. The number of
+bytes in the Python buffer object must be greater than or equal to the
+size of @var{type}.
+@end defun
+
@defun Value.cast (type)
Return a new instance of @code{gdb.Value} that is the result of
casting this instance to the type described by @var{type}, which must