diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 12:27:30 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | 9feb2d07debe7d04a33cbd90f895d529b7a04f41 (patch) | |
tree | e888b8d28f7cc96be1c72adb5bc593f5297859af /gdb/ppc-linux-nat.c | |
parent | 8e5b19ad992b56cb3817dcbd4c656e2ffc3ee889 (diff) | |
download | gdb-9feb2d07debe7d04a33cbd90f895d529b7a04f41.zip gdb-9feb2d07debe7d04a33cbd90f895d529b7a04f41.tar.gz gdb-9feb2d07debe7d04a33cbd90f895d529b7a04f41.tar.bz2 |
Turn value_address and set_value_address functions into methods
This changes the value_address and set_value_address functions to be
methods of value.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/ppc-linux-nat.c')
-rw-r--r-- | gdb/ppc-linux-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index d6d1d0f..6d4bf2c 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -2510,7 +2510,7 @@ ppc_linux_nat_target::check_condition (CORE_ADDR watch_addr, if (num_accesses_left == 1 && num_accesses_right == 0 && VALUE_LVAL (left_val) == lval_memory - && value_address (left_val) == watch_addr) + && left_val->address () == watch_addr) { *data_value = value_as_long (right_val); @@ -2520,7 +2520,7 @@ ppc_linux_nat_target::check_condition (CORE_ADDR watch_addr, } else if (num_accesses_left == 0 && num_accesses_right == 1 && VALUE_LVAL (right_val) == lval_memory - && value_address (right_val) == watch_addr) + && right_val->address () == watch_addr) { *data_value = value_as_long (left_val); |