This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/python+doco/NEWS] Add gdb.Type.name attribute.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 7 Jan 2014 07:14:34 +0400
- Subject: Re: [RFA/python+doco/NEWS] Add gdb.Type.name attribute.
- Authentication-results: sourceware.org; auth=none
- References: <1387769845-28452-1-git-send-email-brobecker at adacore dot com> <87vbxwkcpa dot fsf at fleche dot redhat dot com>
> >>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> 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