gdb/ChangeLog:
authorSergio Durigan Junior <sergiodj@redhat.com>
Wed, 16 Jun 2010 18:30:34 +0000 (18:30 +0000)
committerSergio Durigan Junior <sergiodj@redhat.com>
Wed, 16 Jun 2010 18:30:34 +0000 (18:30 +0000)
commit65d79d4b97a28b720c44e26571170a3af5d300f6
treeb77afb71ac6b18133c28dfe87c7820bf7ddb3420
parent3e23530232f272b7a55c6492948bdd76f65e7334
gdb/ChangeLog:

2010-06-16  Sergio Durigan Junior  <sergiodj@redhat.com>
    Jan Kratochvil  <jan.kratochvil@redhat.com>

* breakpoint.c: Include parser-defs.h.
(watchpoint_exp_is_const): New function.
(watch_command_1): Call watchpoint_exp_is_const to check
if the expression is constant.

gdb/doc/ChangeLog:

2010-06-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

* gdb.texinfo: Include information about the correct use
of addresses in the `watch' command.

gdb/testsuite/ChangeLog:

2010-06-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
    Sergio Durigan Junior  <sergiodj@redhat.com>

* gdb.base/watch-notconst.c: New file.
* gdb.base/watch-notconst.S: New file.
* gdb.base/watch-notconst2.c: New file.
* gdb.base/watch-notconst2.S: New file.
* gdb.base/watch-notconst.exp: New file.
* gdb.base/watchpoint.c (global_ptr_ptr): New variable.
(func4): Add operations on `global_ptr_ptr'.
* gdb.base/watchpoint.exp (test_constant_watchpoint): New
routine to test watchpoints created with a constant expression.
(test_inaccessible_watchpoint): Include tests for watchpoints
created with a constant expression.
gdb/ChangeLog
gdb/breakpoint.c
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/watchpoint.c
gdb/testsuite/gdb.base/watchpoint.exp
gdb/testsuite/gdb.dwarf2/watch-notconst.c [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/watch-notconst.exp [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/watch-notconst2.S [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/watch-notconst2.c [new file with mode: 0644]