From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24741 invoked by alias); 7 Jan 2014 03:14:41 -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 24731 invoked by uid 89); 7 Jan 2014 03:14:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 07 Jan 2014 03:14:39 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id EF0101163A4; Mon, 6 Jan 2014 22:14:37 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id e3XYtaUsVL9d; Mon, 6 Jan 2014 22:14:37 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 92803116376; Mon, 6 Jan 2014 22:14:37 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 95447E0CFF; Tue, 7 Jan 2014 07:14:34 +0400 (RET) Date: Tue, 07 Jan 2014 03:14:00 -0000 From: Joel Brobecker To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [RFA/python+doco/NEWS] Add gdb.Type.name attribute. Message-ID: <20140107031434.GG3802@adacore.com> References: <1387769845-28452-1-git-send-email-brobecker@adacore.com> <87vbxwkcpa.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87vbxwkcpa.fsf@fleche.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-01/txt/msg00113.txt.bz2 > >>>>> "Joel" == Joel Brobecker writes: > > Joel> * python/py-type.c (typy_get_name): New function. > Joel> (type_object_getset): Add entry for attribute "name". > Joel> * NEWS: Add entry mentioning this new attribute. > > Joel> * py-pp-integral.c: New file. > Joel> * py-pp-integral.py: New file. > Joel> * py-pp-integral.exp: New file. > > Joel> Tested on x86_64-linux. OK to commit? > > Thanks Joel. This is ok. Thanks, Tom and Eli for the reviews. The patch is now in. > Note that scalar types are often lost by gdb, so if you want to try > "print (our_time_t) value", it will probably not work. This is fallout > from check_typedef. There's a bug in bugzilla about this. I see. I've noticed the same problem with Ada as well, but during internal transformations (what we call type "fix"-ing), where we lose information as we go - Eg, we lose the type's name, or the type of the array index, etc. I've tried to fix things when they become needed as well. -- Joel