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: Tom Tromey <tromey at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 06 Jan 2014 14:44:17 -0700
- 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>
>>>>> "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.
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.
Tom