Commit 7acc5349 by Jonathan Wakely Committed by Jonathan Wakely

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
parent 1c4df66b
2017-03-16 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/67440
* python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com> 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
Implement LWG 2857, {variant,optional,any}::emplace should Implement LWG 2857, {variant,optional,any}::emplace should
......
...@@ -85,9 +85,8 @@ except ImportError: ...@@ -85,9 +85,8 @@ except ImportError:
def find_type(orig, name): def find_type(orig, name):
typ = orig.strip_typedefs() typ = orig.strip_typedefs()
while True: while True:
# Use typ.name here instead of str(typ) to discard any const,etc. # Strip cv-qualifiers. PR 67440.
# qualifiers. PR 67440. search = '%s::%s' % (typ.unqualified(), name)
search = typ.name + '::' + name
try: try:
return gdb.lookup_type(search) return gdb.lookup_type(search)
except RuntimeError: except RuntimeError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment