This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. 1b588015839caafc608a6944a78aea170f5fb2f6
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 26 Feb 2014 19:05:58 -0000
- Subject: gdb and binutils branch master updated. 1b588015839caafc608a6944a78aea170f5fb2f6
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 1b588015839caafc608a6944a78aea170f5fb2f6 (commit)
from dbb9c2b1f231262ece36790241fe1fc3902cf03d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1b588015839caafc608a6944a78aea170f5fb2f6
commit 1b588015839caafc608a6944a78aea170f5fb2f6
Author: Joel Brobecker <brobecker@adacore.com>
Date: Thu Jan 30 07:37:08 2014 +0400
[Python] Make regexp collection printers work with typedefs as well.
Consider the following type for which we would like to provide
a pretty-printer and manage it via RegexpCollectionPrettyPrinter:
typedef long time_t;
Currently, this does not work because this framework only considers
the type's tag name:
typename = gdb.types.get_basic_type(val.type).tag
if not typename:
return None
This patch extends it to use the type's name if the basic type
does not have a tag name, thus allowing the framework to also
work with typedefs like the above.
gdb/ChangeLog:
* python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
Use the type's name if its basic type does not have a tag.
gdb/testsuite/ChangeLog:
* testsuite/gdb.python/py-pp-re-notag.c: New file.
* testsuite/gdb.python/py-pp-re-notag.ex: New file.
* testsuite/gdb.python/py-pp-re-notag.p: New file.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 5 +++++
gdb/python/lib/gdb/printing.py | 2 ++
gdb/testsuite/ChangeLog | 6 ++++++
.../{py-pp-integral.c => py-pp-re-notag.c} | 0
.../{py-pp-integral.exp => py-pp-re-notag.exp} | 0
.../{py-pp-integral.py => py-pp-re-notag.py} | 11 ++++++-----
6 files changed, 19 insertions(+), 5 deletions(-)
copy gdb/testsuite/gdb.python/{py-pp-integral.c => py-pp-re-notag.c} (100%)
copy gdb/testsuite/gdb.python/{py-pp-integral.exp => py-pp-re-notag.exp} (100%)
copy gdb/testsuite/gdb.python/{py-pp-integral.py => py-pp-re-notag.py} (78%)
hooks/post-receive
--
gdb and binutils