From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31368 invoked by alias); 27 Oct 2009 15:52:19 -0000 Received: (qmail 31352 invoked by uid 22791); 27 Oct 2009 15:52:17 -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; Tue, 27 Oct 2009 15:52:08 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9RFq5dP016112; Tue, 27 Oct 2009 11:52:05 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9RFq3ZQ015211; Tue, 27 Oct 2009 11:52:04 -0400 Message-ID: <4AE71723.10207@redhat.com> Date: Tue, 27 Oct 2009 15:52: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: Eli Zaretskii CC: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [patch][doc] PR python/10781 References: <4AD82247.3070503@redhat.com> <838wfbixtf.fsf@gnu.org> <8363afi3hf.fsf@gnu.org> <834opzi2bf.fsf@gnu.org> In-Reply-To: <834opzi2bf.fsf@gnu.org> 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/msg00657.txt.bz2 On 10/16/2009 08:08 PM, Eli Zaretskii wrote: > Here's the text that I propose to use: > > +@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 > Ok to check this patch in? ChangeLog 2009-10-27 Tom Tromey Eli Zaretskii 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.637 diff -u -r1.637 gdb.texinfo --- doc/gdb.texinfo 23 Oct 2009 00:49:32 -0000 1.637 +++ doc/gdb.texinfo 27 Oct 2009 15:48:10 -0000 @@ -19445,6 +19445,13 @@ 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 +