From 51b42d301aeb3e0e04094ac845d8a526d2db4e2f Mon Sep 17 00:00:00 2001 From: pmuldoon Date: Tue, 27 Oct 2009 20:51:22 +0000 Subject: [PATCH] 2009-10-27 Tom Tromey Eli Zaretskii PR python/10781 * gdb.texinfo (Values From Inferior): Document cast method. --- gdb/doc/ChangeLog | 7 +++++++ gdb/doc/gdb.texinfo | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index d65e6856af..ce998409f2 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 c1e393f5dd..6a74aebcfe 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 -- 2.11.0