This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] c_value_print: Revert 'val' to a reference for TYPE_CODE_STRUCT
- From: Pedro Alves <palves at redhat dot com>
- To: Martin Galvan <martin dot galvan at tallertechnologies dot com>, gdb-patches at sourceware dot org, tom at tromey dot com, daniel dot gutson at tallertechnologies dot com
- Date: Wed, 27 Apr 2016 11:01:35 +0100
- Subject: Re: [PATCH] c_value_print: Revert 'val' to a reference for TYPE_CODE_STRUCT
- Authentication-results: sourceware.org; auth=none
- References: <1461707298-26514-1-git-send-email-martin dot galvan at tallertechnologies dot com>
On 04/26/2016 10:48 PM, Martin Galvan wrote:
> Currently c_value_print will turn struct reference values into pointers before doing
> a set of RTTI checks. This was introduced as a fix to PR c++/15401. If there's RTTI
> the pointer will be adjusted and converted back to a reference. However, if there's
> no RTTI the value will still be treated as a pointer during the remainder of the function.
> This patch moves the conversion down so that it's always performed when needed.
What's the motivation behind this? Does it change anything user visible?
Thanks,
Pedro Alves