summaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-08 04:15:39 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-08 04:15:39 +0000
commit5086187cf9ff8626f0ef2ee885be62dde9eae4d6 (patch)
tree941724cce081d5f6f255a25dffbe3ef318158873 /gdb/breakpoint.c
parent300475fe9d2e1ffb2ea4bb7f7d3fe9a11bbf8c43 (diff)
downloadbinutils-gdb-5086187cf9ff8626f0ef2ee885be62dde9eae4d6.tar.gz
2005-02-07 Andrew Cagney <cagney@gnu.org>
* cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or value_contents_writeable, include note that there are problems. * breakpoint.c, infcall.c: Use VALUE_LVAL.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 0a117d28246..da37ea85738 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -5821,9 +5821,10 @@ can_use_hardware_watchpoint (struct value *v)
}
}
}
- else if (v->lval != not_lval && deprecated_value_modifiable (v) == 0)
+ else if (VALUE_LVAL (v) != not_lval
+ && deprecated_value_modifiable (v) == 0)
return 0; /* ??? What does this represent? */
- else if (v->lval == lval_register)
+ else if (VALUE_LVAL (v) == lval_register)
return 0; /* cannot watch a register with a HW watchpoint */
}