From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53821 invoked by alias); 24 Jan 2017 15:54:04 -0000 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 Received: (qmail 53115 invoked by uid 89); 24 Jan 2017 15:54:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: gproxy3-pub.mail.unifiedlayer.com Received: from gproxy3-pub.mail.unifiedlayer.com (HELO gproxy3-pub.mail.unifiedlayer.com) (69.89.30.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Tue, 24 Jan 2017 15:53:53 +0000 Received: (qmail 22491 invoked by uid 0); 24 Jan 2017 15:53:51 -0000 Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy3.mail.unifiedlayer.com with SMTP; 24 Jan 2017 15:53:51 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by CMOut01 with id cFtm1u00h2f2jeq01FtpyX; Tue, 24 Jan 2017 08:53:50 -0700 X-Authority-Analysis: v=2.1 cv=H75InYoi c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=IgFoBzBjUZAA:10 a=0FD05c-RAAAA:8 a=CCpqsmhAAAAA:8 a=rby13BK2fmMDEEjAlwwA:9 a=FEznWbSZkTcA:10 a=WJcitwWBFaYA:10 a=66zSKFQpzMcA:10 a=l1rpMCqCXRGZwUSuRcM3:22 a=ul9cdbp4aOFLsgKbc677:22 Received: from 174-16-146-181.hlrn.qwest.net ([174.16.146.181]:43882 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cW3Pn-00069s-Hy; Tue, 24 Jan 2017 08:53:47 -0700 From: Tom Tromey To: Simon Marchi Cc: , Simon Marchi Subject: Re: [PATCH 1/5] Introduce specialized versions of gdbpy_ref References: <20170123224004.8893-1-simon.marchi@ericsson.com> <20170123224004.8893-2-simon.marchi@ericsson.com> Date: Tue, 24 Jan 2017 15:54:00 -0000 In-Reply-To: <20170123224004.8893-2-simon.marchi@ericsson.com> (Simon Marchi's message of "Mon, 23 Jan 2017 17:40:00 -0500") Message-ID: <8737g85u9h.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BWhitelist: no X-Exim-ID: 1cW3Pn-00069s-Hy X-Source-Sender: 174-16-146-181.hlrn.qwest.net (pokyo) [174.16.146.181]:43882 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-SW-Source: 2017-01/txt/msg00496.txt.bz2 >>>>> "Simon" == Simon Marchi writes: Simon> We currently have a single type, gdbpy_ref, which holds a Simon> reference to a PyObject*. This means that if we want to wrap an Simon> inferior_object* (which is a sub-class-ish of PyObject), we need to cast Simon> it when constructing the reference: This was the subject of this patch: https://sourceware.org/ml/gdb-patches/2017-01/msg00277.html I applied it all over the Python layer. Tom