diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:29:31 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:45:34 -0700 |
commit | 7bb99c53837248382434ccf26f50b42e69d0b874 (patch) | |
tree | adf8db92d911e1fcc5675e086ffad739a3fe8921 /gdb/target.c | |
parent | 11b5219af5c54762a68469ade4005e5dd2362f87 (diff) | |
download | gdb-7bb99c53837248382434ccf26f50b42e69d0b874.zip gdb-7bb99c53837248382434ccf26f50b42e69d0b874.tar.gz gdb-7bb99c53837248382434ccf26f50b42e69d0b874.tar.bz2 |
Add target_ops argument to to_insert_watchpoint
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_insert_watchpoint>: Add
argument.
(target_insert_watchpoint): Add argument.
* target.c (debug_to_insert_watchpoint): Add argument.
(update_current_target): Update.
* s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
* remote.c (remote_insert_watchpoint): Add 'self' argument.
* remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
* remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
* procfs.c (procfs_insert_watchpoint): Add 'self' argument.
* ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
argument.
* nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
(procfs_insert_hw_watchpoint): Add 'self' argument.
* mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
argument.
* inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
argument.
* ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
argument.
* i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
* arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
argument.
* aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
'self' argument.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gdb/target.c b/gdb/target.c index 6850410..d737928 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -111,7 +111,8 @@ static int debug_to_remove_hw_breakpoint (struct target_ops *self, struct gdbarch *, struct bp_target_info *); -static int debug_to_insert_watchpoint (CORE_ADDR, int, int, +static int debug_to_insert_watchpoint (struct target_ops *self, + CORE_ADDR, int, int, struct expression *); static int debug_to_remove_watchpoint (struct target_ops *self, @@ -749,7 +750,8 @@ update_current_target (void) struct bp_target_info *)) return_minus_one); de_fault (to_insert_watchpoint, - (int (*) (CORE_ADDR, int, int, struct expression *)) + (int (*) (struct target_ops *, CORE_ADDR, int, int, + struct expression *)) return_minus_one); de_fault (to_remove_watchpoint, (int (*) (struct target_ops *, CORE_ADDR, int, int, @@ -4754,12 +4756,14 @@ debug_to_remove_hw_breakpoint (struct target_ops *self, } static int -debug_to_insert_watchpoint (CORE_ADDR addr, int len, int type, +debug_to_insert_watchpoint (struct target_ops *self, + CORE_ADDR addr, int len, int type, struct expression *cond) { int retval; - retval = debug_target.to_insert_watchpoint (addr, len, type, cond); + retval = debug_target.to_insert_watchpoint (&debug_target, + addr, len, type, cond); fprintf_unfiltered (gdb_stdlog, "target_insert_watchpoint (%s, %d, %d, %s) = %ld\n", |