OSDN Git Service

gdb/
authorpalves <palves>
Wed, 10 Mar 2010 22:25:37 +0000 (22:25 +0000)
committerpalves <palves>
Wed, 10 Mar 2010 22:25:37 +0000 (22:25 +0000)
commitc22da9d98119a40aea72739f8189b8ab4e4ae597
tree958c109881a354c051b0a93dda8e7e6c7e1a1ca3
parentc5bfeb6d82d358c2dd8e23f956cc32b5a05fa097
gdb/
* breakpoint.c (condition_command): Handle watchpoint conditions.
(is_hardware_watchpoint): Add comment.
(is_watchpoint): New.
(update_watchpoint): Don't reparse the watchpoint's condition
unless necessary.
(WP_IGNORE): New.
(watchpoint_check): Use it.
(bpstat_check_watchpoint): Handle it.
(bpstat_check_breakpoint_conditions): Evaluate watchpoint local
conditions in a frame where it makes sense.
(watch_command_1): Store the innermost block of the condition
expression.
(delete_breakpoint): Delete the watchpoint condition expression.
* breakpoint.h (struct bp_location) <cond>: Update comment.
(struct breakpoint): New fields `cond_exp' and
`cond_exp_valid_block'.

gdb/testsuite/
* gdb.base/watch-cond.c, gdb.base/watch-cond.exp: New.
gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/watch-cond.c [new file with mode: 0644]
gdb/testsuite/gdb.base/watch-cond.exp [new file with mode: 0644]