From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20867 invoked by alias); 16 Oct 2009 07:35:43 -0000 Received: (qmail 20857 invoked by uid 22791); 16 Oct 2009 07:35:42 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Oct 2009 07:35:38 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9G7Za8B011624 for ; Fri, 16 Oct 2009 03:35:36 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9G7ZZHt027239 for ; Fri, 16 Oct 2009 03:35:36 -0400 Message-ID: <4AD82247.3070503@redhat.com> Date: Fri, 16 Oct 2009 07:35:00 -0000 From: Phil Muldoon User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-2.7.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4 MIME-Version: 1.0 To: gdb-patches ml Subject: [patch][doc] PR python/10781 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00360.txt.bz2 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 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]$