OSDN Git Service

* breakpoint.c (update_watchpoint): Skip creating locations and
authorpalves <palves>
Sun, 22 Nov 2009 06:37:21 +0000 (06:37 +0000)
committerpalves <palves>
Sun, 22 Nov 2009 06:37:21 +0000 (06:37 +0000)
commit04dcad1cd3af2159264018c7b81373e1c7d6606c
tree355fcaebbaa9a956a5c8425f311e40d8b3647e62
parent64c0939a91a9f7ba7b51b090e7f2aa3d10d1c14c
* breakpoint.c (update_watchpoint): Skip creating locations and
reading the selected frame if there's no execution.
(bpstat_stop_status): Use is_hardware_watchpoint.  If not
stopping, update watchpoints and the global location list, instead
of removing and inserting all breakpoints.
(breakpoint_address_is_meaningful): Hardware watchpoints also have
a meaningful target address.
(watchpoint_locations_match): New.
(breakpoint_locations_match): New.
(watch_command_1): Create the watchpoint breakpoint without any
location initially.  Use update_watchpoint to create the
watchpoint locations.
(update_global_location_list): Use breakpoint_locations_match, so
watchpoint locations are handled too.  Also detect duplicate
watchpoint locations.
gdb/ChangeLog
gdb/breakpoint.c