aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-02-10 10:48:50 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:24:27 -0700
commitf28085dfb40901f064bd24a0030d9d73babe161e (patch)
treea0f9be1396f37429c9569b053b68169f4e77e68d /gdb/breakpoint.c
parent736355f2e186a6a5275cac26d9486a5cc28f755c (diff)
downloadbinutils-f28085dfb40901f064bd24a0030d9d73babe161e.zip
binutils-f28085dfb40901f064bd24a0030d9d73babe161e.tar.gz
binutils-f28085dfb40901f064bd24a0030d9d73babe161e.tar.bz2
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>
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index ebb2843..3b9aebc 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -4415,7 +4415,7 @@ bpstat::bpstat (const bpstat &other)
print_it (other.print_it)
{
if (other.old_val != NULL)
- old_val = release_value (other.old_val.get ()->copy ());
+ old_val = release_value (other.old_val->copy ());
}
/* Return a copy of a bpstat. Like "bs1 = bs2" but all storage that
@@ -10316,7 +10316,7 @@ watch_command_1 (const char *arg, int accessflag, int from_tty,
w->cond_exp_valid_block = cond_exp_valid_block;
if (just_location)
{
- struct type *t = val.get ()->type ();
+ struct type *t = val->type ();
CORE_ADDR addr = value_as_address (val.get ());
w->exp_string_reparse