This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 00/12] (somewhat) clean up struct value ownership
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> As I'm reading the series, I'm also wishing for making some of the
Pedro> value-related free-functions methods of value instead
Yeah. When I wrote my note I meant to mention a couple of other things,
and then forgot to. Class-ifying value more completely was one of them.
Another one would be to do a bigger transform from "struct value *" to
"value_ref_ptr" (and "const value_ref_ptr &") everywhere, to try to
reduce the number of inc/dec-ref calls to a bare minimum, maybe even zero.
I'm not sure if I'll attempt those, since I have other maintenance
cleanups in mind as well.
Tom