gdb/
authorPedro Alves <palves@redhat.com>
Tue, 9 Nov 2010 18:23:52 +0000 (18:23 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 9 Nov 2010 18:23:52 +0000 (18:23 +0000)
commita1442452ec3d5cf08e0baefb7aa8691b28ea9682
tree926a4ec1c1bedff77e60d06d34b6d0e942f4e86c
parentf625ae503e5bf88c2f5d6b5a34316416f1fd0f9b
gdb/
* breakpoint.c (watch_command_1): Get a pointer of the lazy
version of the expression's value, even if reading the value from
memory fails.  When creating a -location watchpoint, get the
value's address from the lazy value pointer.

gdb/testsuite/
* gdb.base/watchpoint.exp: Test "watch -location" with an
innacessible location.
gdb/ChangeLog
gdb/breakpoint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/watchpoint.exp