diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-08 04:15:39 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-08 04:15:39 +0000 |
commit | 5086187cf9ff8626f0ef2ee885be62dde9eae4d6 (patch) | |
tree | 941724cce081d5f6f255a25dffbe3ef318158873 /gdb/breakpoint.c | |
parent | 300475fe9d2e1ffb2ea4bb7f7d3fe9a11bbf8c43 (diff) | |
download | gdb-5086187cf9ff8626f0ef2ee885be62dde9eae4d6.zip gdb-5086187cf9ff8626f0ef2ee885be62dde9eae4d6.tar.gz gdb-5086187cf9ff8626f0ef2ee885be62dde9eae4d6.tar.bz2 |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 0a117d2..da37ea8 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 */ } |