Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch][doc] PR python/10781
@ 2009-10-16  7:35 Phil Muldoon
  2009-10-16  7:46 ` Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: Phil Muldoon @ 2009-10-16  7:35 UTC (permalink / raw)
  To: gdb-patches ml

On irc,  Michael Lyle noticed that Value.cast was not documented in GDB 
7.0, but the method was available for use. Tom wrote this documentation 
sometime ago, and it got missed on the merge. This patch fixes this.

OK?

Cheers,

Phil

--

ChangeLog

2009-10-16  Tom Tromey <tromey@redhat.com>

     PR python/10781

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

--

Index: doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.633
diff -u -r1.633 gdb.texinfo
--- doc/gdb.texinfo    12 Oct 2009 01:59:54 -0000    1.633
+++ doc/gdb.texinfo    16 Oct 2009 07:30:12 -0000
@@ -19232,6 +19232,13 @@
  The following methods are provided:

  @table @code
+@defmethod Value cast type
+Cast the @code{gdb.Value} to the type represented by @var{type}, and
+return a new @code{gdb.Value}.  @var{type} must be a @code{gdb.Type}
+object.  If the cast cannot be performed for some reason, an exception
+is thrown.
+@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
[pmuldoon@localhost gdb]$


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-10-27 21:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-16  7:35 [patch][doc] PR python/10781 Phil Muldoon
2009-10-16  7:46 ` Eli Zaretskii
2009-10-16 18:07   ` Tom Tromey
2009-10-16 18:44     ` Eli Zaretskii
2009-10-16 18:49       ` Tom Tromey
2009-10-16 19:09         ` Eli Zaretskii
2009-10-19 17:50           ` Tom Tromey
2009-10-27 15:52           ` Phil Muldoon
2009-10-27 16:01             ` Phil Muldoon
2009-10-27 18:43             ` Eli Zaretskii
2009-10-27 20:58               ` Phil Muldoon
2009-10-27 21:14                 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox