Implement printing of rvalue reference types and values
authorArtemiy Volkov <artemiyv@acm.org>
Mon, 20 Mar 2017 20:47:48 +0000 (13:47 -0700)
committerKeith Seitz <keiths@redhat.com>
Mon, 20 Mar 2017 20:47:48 +0000 (13:47 -0700)
commite1cb3213476485a01aa11ecedfa186e386cb4bdb
treeb45d256a15b1a0216ba5edeb746954038955c756
parente4347c89f3a14b480fc88581d1363835f7b99b68
Implement printing of rvalue reference types and values

This patch provides the ability to print out names of rvalue reference types
and values of those types. This is done in full similarity to regular
references, and as with them, we don't print out "const" suffix because all
rvalue references are const.

gdb/ChangeLog

PR gdb/14441
* c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
(c_type_print_modifier, c_type_print_varspec_suffix)
(c_type_print_base): Support printing rvalue reference types.
* c-valprint.c (c_val_print, c_value_print): Support printing
rvalue reference values.
gdb/ChangeLog
gdb/c-typeprint.c
gdb/c-valprint.c