This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 4/4] Document two argument form of gdb.Value constructor
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 18 Feb 2019 08:09:07 -0700
- Subject: [PATCH 4/4] Document two argument form of gdb.Value constructor
- References: <20190218075816.6f67f3d9@f29-4.lan>
gdb/doc/ChangeLog:
* python.texi (Values From Inferior): Document second form
of Value.__init__.
---
gdb/doc/python.texi | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index 2860361c33..f6df32e76d 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -735,6 +735,13 @@ 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 gdb
+value of type @{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}.
+
@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