aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 8c0d429..645fd03 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -5821,7 +5821,7 @@ can_use_hardware_watchpoint (struct value *v)
}
}
}
- else if (v->lval != not_lval && v->modifiable == 0)
+ else if (v->lval != not_lval && deprecated_value_modifiable (v) == 0)
return 0; /* ??? What does this represent? */
else if (v->lval == lval_register)
return 0; /* cannot watch a register with a HW watchpoint */