From 77b06cd7198f20bb48b3a148ca8b9efbaa06aa19 Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Tue, 11 Jan 2011 19:16:23 +0000 Subject: 2010-01-11 Thiago Jung Bauermann Convert hardware watchpoints to use breakpoint_ops. gdb/ * breakpoint.h (breakpoint_ops) : Rename to... : ... this. Return int instead of void. Accept pointer to struct bp_location instead of pointer to struct breakpoint. Adapt all implementations. (breakpoint_ops) : Rename to... : ... this. Accept pointer to struct bp_location instead of pointer to struct breakpoint. Adapt all implementations. * breakpoint.c (insert_catchpoint): Delete function. (insert_bp_location): Call the watchpoint or catchpoint's breakpoint_ops.insert method. (remove_breakpoint_1): Call the watchpoint or catchpoint's breakpoint_ops.remove method. (insert_watchpoint, remove_watchpoint): New functions. (watchpoint_breakpoint_ops): New structure. (watch_command_1): Initialize the OPS field. * inf-child.c (inf_child_insert_fork_catchpoint) (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint) (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint) (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint): Delete functions. (inf_child_target): Remove initialization of to_insert_fork_catchpoint, to_remove_fork_catchpoint, to_insert_vfork_catchpoint, to_remove_vfork_catchpoint, to_insert_exec_catchpoint, to_remove_exec_catchpoint and to_set_syscall_catchpoint. * target.c (update_current_target): Change default implementation of to_insert_fork_catchpoint, to_remove_fork_catchpoint, to_insert_vfork_catchpoint, to_remove_vfork_catchpoint, to_insert_exec_catchpoint, to_remove_exec_catchpoint and to_set_syscall_catchpoint to return_one. (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint) (debug_to_insert_exec_catchpoint): Report return value. * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint) (to_insert_exec_catchpoint): Change declaration to return int instead of void. gdb/testsuite/ * gdb.base/foll-exec.exp: Adapt to new error string when the catchpoint type is not supported. * gdb.base/foll-fork.exp: Likewise. * gdb.base/foll-vfork.exp: Likewise. --- gdb/ChangeLog | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4e92633..8d74a1f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,41 @@ +2010-01-11 Thiago Jung Bauermann + + Convert hardware watchpoints to use breakpoint_ops. + * breakpoint.h (breakpoint_ops) : Rename to... + : ... this. Return int instead of void. + Accept pointer to struct bp_location instead of pointer to + struct breakpoint. Adapt all implementations. + (breakpoint_ops) : Rename to... + : ... this. Accept pointer to struct bp_location + instead of pointer to struct breakpoint. Adapt all implementations. + * breakpoint.c (insert_catchpoint): Delete function. + (insert_bp_location): Call the watchpoint or catchpoint's + breakpoint_ops.insert method. + (remove_breakpoint_1): Call the watchpoint or catchpoint's + breakpoint_ops.remove method. + (insert_watchpoint, remove_watchpoint): New functions. + (watchpoint_breakpoint_ops): New structure. + (watch_command_1): Initialize the OPS field. + * inf-child.c (inf_child_insert_fork_catchpoint) + (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint) + (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint) + (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint): + Delete functions. + (inf_child_target): Remove initialization of to_insert_fork_catchpoint, + to_remove_fork_catchpoint, to_insert_vfork_catchpoint, + to_remove_vfork_catchpoint, to_insert_exec_catchpoint, + to_remove_exec_catchpoint and to_set_syscall_catchpoint. + * target.c (update_current_target): Change default implementation of + to_insert_fork_catchpoint, to_remove_fork_catchpoint, + to_insert_vfork_catchpoint, to_remove_vfork_catchpoint, + to_insert_exec_catchpoint, to_remove_exec_catchpoint and + to_set_syscall_catchpoint to return_one. + (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint) + (debug_to_insert_exec_catchpoint): Report return value. + * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint) + (to_insert_exec_catchpoint): Change declaration to return int instead + of void. + 2011-01-11 Michael Snyder * arm-tdep.c: Internationalization. -- cgit v1.1