1 Nov 2009 02:15
[RFA] Fix hw watchpoints in process record.
Michael Snyder <msnyder <at> vmware.com>
2009-11-01 01:15:27 GMT
2009-11-01 01:15:27 GMT
Here is a patch to make hardware watchpoints work in precord. Biggest change is in breakpoint.c, but it's mainly mechanical. I abstracted most of the function "watchpoint_check" into a separate function so it could be called from two places. Then in record_wait, if not replay mode we call target_stopped_by_watchpoint to see if a watchpoint was triggered. In replay mode we call the new function hw_watchpoint_check.
2009-10-31 Michael Snyder <msnyder <at> vmware.com> Make hardware watchpoints work for process record. * breakpoint.c (watchpoint_check_1): Abstracted from watchpoint_check. (watchpoint_check_2): Check_error entry point for above. (watchpoint_check): Call watchpoint_check_1. (hw_watchpoint_check): New function. Return true if a hardware watchpoint expression has changed. * breakpoint.h (hw_watchpoint_check): Export. * record.c (record_beneath_to_stopped_by_watchpoint): New pointer. (record_open): Initialize above pointer. (record_stopped_by_watchpoint): New target method. (record_wait): Check to see if hitting hardware watchpoint. Index: gdb/breakpoint.c =================================================================== --- gdb.orig/breakpoint.c 2009-10-31 17:31:15.000000000 -0700(Continue reading)
RSS Feed