Implement demangling for rvalue reference type names
authorArtemiy Volkov <artemiyv@acm.org>
Mon, 20 Mar 2017 20:47:46 +0000 (13:47 -0700)
committerKeith Seitz <keiths@redhat.com>
Mon, 20 Mar 2017 20:47:46 +0000 (13:47 -0700)
commite4347c89f3a14b480fc88581d1363835f7b99b68
tree90a1812f258e7dd3a207b87760a6bc4950b182c2
parent53cc15f5fe1f5e2358994d4f60f1c2aa9115004d
Implement demangling for rvalue reference type names

This patch fixes demangling of names containing rvalue reference typenames by
handling DEMANGLE_COMPONENT_RVALUE_REFERENCE demangle component.

gdb/ChangeLog

PR gdb/14441
* cp-name-parser.y (ptr_operator): Handle the '&&' token in
typename.
* cp-support.c (replace_typedefs): Handle
DEMANGLE_COMPONENT_RVALUE_REFERENCE.
* python/py-type.c (typy_lookup_type): Likewise.
gdb/ChangeLog
gdb/cp-name-parser.y
gdb/cp-support.c
gdb/python/py-type.c