From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19575 invoked by alias); 24 Sep 2010 07:29:15 -0000 Received: (qmail 19565 invoked by uid 22791); 24 Sep 2010 07:29:13 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Sep 2010 07:29:00 +0000 Received: by wyb36 with SMTP id 36so2965045wyb.0 for ; Fri, 24 Sep 2010 00:28:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.188.20 with SMTP id z20mr1730407wem.51.1285313334014; Fri, 24 Sep 2010 00:28:54 -0700 (PDT) Received: by 10.216.0.140 with HTTP; Fri, 24 Sep 2010 00:28:53 -0700 (PDT) Date: Fri, 24 Sep 2010 07:29:00 -0000 Message-ID: Subject: Extending gdb.Value From: =?ISO-8859-1?Q?Joel_Borggr=E9n=2DFranck?= To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-09/txt/msg00125.txt.bz2 So I noticed today that I cant extend gdb.Value: (gdb) python class foo(gdb.Value): pass Traceback (most recent call last): File "", line 1, in TypeError: Error when calling the metaclass bases type 'gdb.Value' is not an acceptable base type Error while executing Python code. (gdb) So a couple of questions regarding this: 1) Is this intended? 2) If so, why? I have just started writhing magic proxies around gdb.Value, which is quite doable in Python, but I realized it might be easier to just 'fix' the basic problem if there is no explicit reason to disallow using gdb.Value as a base. Cheers Joel Borggr=E9n-Franck