From: Phil Muldoon Date: Tue, 27 Oct 2009 20:51:22 +0000 (+0000) Subject: 2009-10-27 Tom Tromey X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14ff22352f53da430adbc3455b54f113af3bf849;p=binutils-gdb.git 2009-10-27 Tom Tromey Eli Zaretskii PR python/10781 * gdb.texinfo (Values From Inferior): Document cast method. --- diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index d65e6856af3..ce998409f20 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,10 @@ +2009-10-27 Tom Tromey + Eli Zaretskii + + PR python/10781 + + * gdb.texinfo (Values From Inferior): Document cast method. + 2009-10-22 Paul Pluzhnikov * gdb.texinfo (Machine Code): Mention function name in disasssembly diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index c1e393f5dd7..6a74aebcfe3 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -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