diff options
author | Martin Galvan <martin.galvan@tallertechnologies.com> | 2016-04-27 12:01:14 -0300 |
---|---|---|
committer | Martin Galvan <martin.galvan@tallertechnologies.com> | 2016-04-27 12:05:43 -0300 |
commit | 476350ba4800f1144b125f6511a5e25b223cc90b (patch) | |
tree | 8defec0d2e6829eb6fc3c1e32b3953fb0660c1ad /gdb/ChangeLog | |
parent | 310cdbb65119c60959578460576ad316e3e2fb11 (diff) | |
download | gdb-476350ba4800f1144b125f6511a5e25b223cc90b.zip gdb-476350ba4800f1144b125f6511a5e25b223cc90b.tar.gz gdb-476350ba4800f1144b125f6511a5e25b223cc90b.tar.bz2 |
c_value_print: Revert 'val' to a reference for TYPE_CODE_STRUCT
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.
Notice this currently has not user-visible effects, so can be seen as a small
code cleanup. However, it'll be necessary for the bug-fix for handling
synthetic C++ references. It causes no testsuite regressions.
gdb/ChangeLog:
2016-04-26 Martin Galvan <martin.galvan@tallertechnologies.com>
* c-valprint.c (c_value_print): Always convert val back to reference
type if we converted it to a pointer type.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index df10de4..165c2a3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com> + + * c-valprint.c (c_value_print): Always convert val back to reference + type if we converted it to a pointer type. + 2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com> * configure.ac: Enhance configure check for babeltrace to reject |