2009-10-27 Tom Tromey <tromey@redhat.com>
authorPhil Muldoon <pmuldoon@redhat.com>
Tue, 27 Oct 2009 20:51:22 +0000 (20:51 +0000)
committerPhil Muldoon <pmuldoon@redhat.com>
Tue, 27 Oct 2009 20:51:22 +0000 (20:51 +0000)
    Eli Zaretskii <eliz@gnu.org>

        PR python/10781

* gdb.texinfo (Values From Inferior): Document cast method.

gdb/doc/ChangeLog
gdb/doc/gdb.texinfo

index d65e685..ce99840 100644 (file)
@@ -1,3 +1,10 @@
+2009-10-27  Tom Tromey <tromey@redhat.com>
+           Eli Zaretskii <eliz@gnu.org>
+
+        PR python/10781
+
+       * gdb.texinfo (Values From Inferior): Document cast method.
+
 2009-10-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
 
        * gdb.texinfo (Machine Code): Mention function name in disasssembly
index c1e393f..6a74aeb 100644 (file)
@@ -19445,6 +19445,13 @@ The type of this @code{gdb.Value}.  The value of this attribute is a
 The following methods are provided:
 
 @table @code
+@defmethod 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
+be a @code{gdb.Type} object.  If the cast cannot be performed for some
+reason, this method throws an exception.
+@end defmethod
+
 @defmethod Value dereference
 For pointer data types, this method returns a new @code{gdb.Value} object
 whose contents is the object pointed to by the pointer.  For example, if