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
This commit is contained in:
parent
1c4df66b56
commit
7acc534977
@ -1,3 +1,9 @@
|
||||
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>
|
||||
|
||||
Implement LWG 2857, {variant,optional,any}::emplace should
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user