Rely on value_ref_ptr::operator->
authorTom Tromey <tom@tromey.com>
Fri, 10 Feb 2023 17:48:50 +0000 (10:48 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 13 Feb 2023 22:24:27 +0000 (15:24 -0700)
commitf28085dfb40901f064bd24a0030d9d73babe161e
treea0f9be1396f37429c9569b053b68169f4e77e68d
parent736355f2e186a6a5275cac26d9486a5cc28f755c
Rely on value_ref_ptr::operator->

Simon pointed out some spots were doing val.get()->mumble, where val
is a value_ref_ptr.  These were introduced by the function-to-method
script, replacing older code that passed the result of .get() to a
function.

Now that value.h is using methods, we can instead rely on operator->.
This patch replaces all the newly-introduced instances of this.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/ada-varobj.c
gdb/breakpoint.c
gdb/c-varobj.c
gdb/printcmd.c
gdb/value.c
gdb/varobj.c