Make hardware watchpoints work for process record.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 7a9816048ec09e65a7bf557632dc5cf811fdcdbc..bbf02db2177e590bb0a9bc3cef3c09baceb12ca7 100644 (file)
@@ -1,3 +1,45 @@
+2009-11-22  Pedro Alves  <pedro@codesourcery.com>
+           Michael Snyder  <msnyder@vmware.com>
+
+        Make hardware watchpoints work for process record.
+
+        * breakpoint.c (hardware_watchpoint_inserted_in_range): New.
+       * breakpoint.h (hardware_watchpoint_inserted_in_range): Declare.
+       * record.c (record_beneath_to_stopped_by_watchpoint)
+       (record_beneath_to_stopped_data_address, record_hw_watchpoint):
+       New globals.
+       (record_exec_insn): Check for watchpoint hits.
+       (tmp_to_stopped_by_watchpoint, tmp_to_stopped_data_address): New
+       globals.
+       (record_open): Set tmp_to_stopped_by_watchpoint,
+       tmp_to_stopped_data_address,
+       record_beneath_to_stopped_by_watchpoint and
+       record_beneath_to_stopped_data_address.
+       (record_wait): Report watchpoint hits to the core.  Update and
+       extend comments.
+       (record_stopped_by_watchpoint): New.
+       (record_stopped_data_address): New.
+       (init_record_ops): Install them.
+       (init_record_core_ops): Ditto.
+
+2009-11-21  Pedro Alves  <pedro@codesourcery.com>
+
+       * 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.
+
 2009-11-21  Pedro Alves  <pedro@codesourcery.com>
 
        * breakpoint.h (struct breakpoint) <watchpoint_thread>: New field.
This page took 0.026477 seconds and 4 git commands to generate.