aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc-linux-nat.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-02-09 06:55:48 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:22:20 -0700
commit736355f2e186a6a5275cac26d9486a5cc28f755c (patch)
tree5a528ef4fc5572a7f05b366624faa4905bde41b1 /gdb/ppc-linux-nat.c
parent6f9c9d71c2420e9bc6825cef59a922f5fb863e1a (diff)
downloadgdb-736355f2e186a6a5275cac26d9486a5cc28f755c.zip
gdb-736355f2e186a6a5275cac26d9486a5cc28f755c.tar.gz
gdb-736355f2e186a6a5275cac26d9486a5cc28f755c.tar.bz2
Remove deprecated_lval_hack
This removes deprecated_lval_hack and the VALUE_LVAL macro, replacing all uses with a call to value::lval. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/ppc-linux-nat.c')
-rw-r--r--gdb/ppc-linux-nat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index 6d4bf2c..e4fcce6 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -2455,9 +2455,9 @@ ppc_linux_nat_target::num_memory_accesses (const std::vector<value_ref_ptr>
struct value *v = iter.get ();
/* Constants and values from the history are fine. */
- if (VALUE_LVAL (v) == not_lval || v->->deprecated_modifiable () == 0)
+ if (v->lval () == not_lval || v->->deprecated_modifiable () == 0)
continue;
- else if (VALUE_LVAL (v) == lval_memory)
+ else if (v->lval () == lval_memory)
{
/* A lazy memory lvalue is one that GDB never needed to fetch;
we either just used its address (e.g., `a' in `a.b') or
@@ -2509,7 +2509,7 @@ ppc_linux_nat_target::check_condition (CORE_ADDR watch_addr,
return 0;
if (num_accesses_left == 1 && num_accesses_right == 0
- && VALUE_LVAL (left_val) == lval_memory
+ && left_val->lval () == lval_memory
&& left_val->address () == watch_addr)
{
*data_value = value_as_long (right_val);
@@ -2519,7 +2519,7 @@ ppc_linux_nat_target::check_condition (CORE_ADDR watch_addr,
*len = check_typedef (left_val->type ())->length ();
}
else if (num_accesses_left == 0 && num_accesses_right == 1
- && VALUE_LVAL (right_val) == lval_memory
+ && right_val->lval () == lval_memory
&& right_val->address () == watch_addr)
{
*data_value = value_as_long (left_val);