diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-03-16 14:11:48 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-03-16 14:11:48 +0000 |
commit | 7acc5349773cfe101d6ed116be30e15eb71b0d0f (patch) | |
tree | e0de09f6368bec2bcd74be9a3bca606fea6afd61 /libstdc++-v3/python | |
parent | 1c4df66b561cb9c039d10aa4d0c8b9ae1be365a7 (diff) | |
download | gcc-7acc5349773cfe101d6ed116be30e15eb71b0d0f.zip gcc-7acc5349773cfe101d6ed116be30e15eb71b0d0f.tar.gz gcc-7acc5349773cfe101d6ed116be30e15eb71b0d0f.tar.bz2 |
PR libstdc++/67440 make pretty printers work with GDB 7.6 again
PR libstdc++/67440
* python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
From-SVN: r246196
Diffstat (limited to 'libstdc++-v3/python')
-rw-r--r-- | libstdc++-v3/python/libstdcxx/v6/printers.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index 36dd81d..14025dd 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -85,9 +85,8 @@ except ImportError: def find_type(orig, name): typ = orig.strip_typedefs() while True: - # Use typ.name here instead of str(typ) to discard any const,etc. - # qualifiers. PR 67440. - search = typ.name + '::' + name + # Strip cv-qualifiers. PR 67440. + search = '%s::%s' % (typ.unqualified(), name) try: return gdb.lookup_type(search) except RuntimeError: |