From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19139 invoked by alias); 10 Feb 2011 18:48:51 -0000 Received: (qmail 19131 invoked by uid 22791); 10 Feb 2011 18:48:51 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,TW_VP,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 Feb 2011 18:48:43 +0000 Received: (qmail 4802 invoked from network); 10 Feb 2011 18:48:42 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 10 Feb 2011 18:48:42 -0000 From: Pedro Alves To: Tom Tromey Subject: Re: [unavailable values part 1, 17/17] unavailable vptr / virtual base offset Date: Thu, 10 Feb 2011 18:48:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.35-25-generic; KDE/4.5.1; x86_64; ; ) Cc: gdb-patches@sourceware.org References: <201102071435.55786.pedro@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201102101848.38896.pedro@codesourcery.com> 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: 2011-02/txt/msg00198.txt.bz2 On Thursday 10 February 2011 16:20:37, Tom Tromey wrote: > >>>>> "Pedro" == Pedro Alves writes: > > Pedro> The patch adds a new ERROR_NOT_AVAILABLE error, thrown whenever > Pedro> something wants to get at a value's contents with value_contents() > Pedro> and makes baseclass_offset callers that care to handle errors > Pedro> getting at the base class offset gracefully catch the error. > > This seems like something we could meaningfully expose to Python. > That is, we could expose this as a separate exception class, and update > gdb.Value to throw it and to expose the needed availability API. Yep. > Could you file a bug report about this? Sure, will do once this is in. > Unless you are adding this later, that is. I'm not. Thanks for the review! -- Pedro Alves