diff options
author | Tom Tromey <tom@tromey.com> | 2018-04-29 21:07:03 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-04-30 11:33:11 -0600 |
commit | bbfa6f00867946985b954bbec233c0f25f14ac5c (patch) | |
tree | cd2c5427f88f6276caa1f0eb6f895185a2aa3753 /gdb/ChangeLog | |
parent | 1831a9f9d3346dbf61202d2aba6935f0093487dd (diff) | |
download | gdb-bbfa6f00867946985b954bbec233c0f25f14ac5c.zip gdb-bbfa6f00867946985b954bbec233c0f25f14ac5c.tar.gz gdb-bbfa6f00867946985b954bbec233c0f25f14ac5c.tar.bz2 |
Use new_reference for struct value
value_incref returned its argument just as a convenience, which in the
end turned out to only be used in precisely the cases where
new_reference helps. So, this patch changes value_incref to return
void and changes some value-using code to use new_reference.
I also noticed that the comments for value_incref and value_decref
were swapped, so this patch fixes those.
ChangeLog
2018-04-30 Tom Tromey <tom@tromey.com>
* varobj.c (install_new_value): Use new_reference.
* value.h (value_incref): Return void. Swap intro comment with
value_decref.
* value.c (set_value_parent): Use new_reference.
(value_incref): Return void. Update intro comment.
(release_value): Use new_reference.
* dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7da8ca3..dbac3e8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,15 @@ 2018-04-30 Tom Tromey <tom@tromey.com> + * varobj.c (install_new_value): Use new_reference. + * value.h (value_incref): Return void. Swap intro comment with + value_decref. + * value.c (set_value_parent): Use new_reference. + (value_incref): Return void. Update intro comment. + (release_value): Use new_reference. + * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference. + +2018-04-30 Tom Tromey <tom@tromey.com> + * symfile-mem.c (symbol_file_add_from_memory): Use new_reference. * gdb_bfd.h (new_bfd_ref): Remove. (gdb_bfd_open): Update comment. |