aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:32:54 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:45:48 -0700
commit758e29d2cd0242b72a05515a701cfdcb73794864 (patch)
tree387d7253134e4c4b5b7764646b2beb26e23a74d8 /gdb
parentba025e51ae36df9d804c64226292c8b863aa0a99 (diff)
downloadgdb-758e29d2cd0242b72a05515a701cfdcb73794864.zip
gdb-758e29d2cd0242b72a05515a701cfdcb73794864.tar.gz
gdb-758e29d2cd0242b72a05515a701cfdcb73794864.tar.bz2
Add target_ops argument to to_remove_exec_catchpoint
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add argument. (target_remove_exec_catchpoint): Add argument. * target.c (debug_to_remove_exec_catchpoint): Add argument. (update_current_target): Update. * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self' argument.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/linux-nat.c2
-rw-r--r--gdb/target.c6
-rw-r--r--gdb/target.h4
4 files changed, 16 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c2bb891..bcf582a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,15 @@
2014-02-19 Tom Tromey <tromey@redhat.com>
+ * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
+ argument.
+ (target_remove_exec_catchpoint): Add argument.
+ * target.c (debug_to_remove_exec_catchpoint): Add argument.
+ (update_current_target): Update.
+ * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
+ argument.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
argument.
(target_insert_exec_catchpoint): Add argument.
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 1a37ec5..c158f32 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -726,7 +726,7 @@ linux_child_insert_exec_catchpoint (struct target_ops *self, int pid)
}
static int
-linux_child_remove_exec_catchpoint (int pid)
+linux_child_remove_exec_catchpoint (struct target_ops *self, int pid)
{
return 0;
}
diff --git a/gdb/target.c b/gdb/target.c
index 0b10f39..72ab8f3 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -807,7 +807,7 @@ update_current_target (void)
(int (*) (struct target_ops *, int))
return_one);
de_fault (to_remove_exec_catchpoint,
- (int (*) (int))
+ (int (*) (struct target_ops *, int))
return_one);
de_fault (to_set_syscall_catchpoint,
(int (*) (int, int, int, int, int *))
@@ -4931,11 +4931,11 @@ debug_to_insert_exec_catchpoint (struct target_ops *self, int pid)
}
static int
-debug_to_remove_exec_catchpoint (int pid)
+debug_to_remove_exec_catchpoint (struct target_ops *self, int pid)
{
int retval;
- retval = debug_target.to_remove_exec_catchpoint (pid);
+ retval = debug_target.to_remove_exec_catchpoint (&debug_target, pid);
fprintf_unfiltered (gdb_stdlog, "target_remove_exec_catchpoint (%d) = %d\n",
pid, retval);
diff --git a/gdb/target.h b/gdb/target.h
index e192563..e500e92 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -504,7 +504,7 @@ struct target_ops
int (*to_remove_vfork_catchpoint) (struct target_ops *, int);
int (*to_follow_fork) (struct target_ops *, int, int);
int (*to_insert_exec_catchpoint) (struct target_ops *, int);
- int (*to_remove_exec_catchpoint) (int);
+ int (*to_remove_exec_catchpoint) (struct target_ops *, int);
int (*to_set_syscall_catchpoint) (int, int, int, int, int *);
int (*to_has_exited) (int, int, int *);
void (*to_mourn_inferior) (struct target_ops *);
@@ -1336,7 +1336,7 @@ int target_follow_fork (int follow_child, int detach_fork);
(*current_target.to_insert_exec_catchpoint) (&current_target, pid)
#define target_remove_exec_catchpoint(pid) \
- (*current_target.to_remove_exec_catchpoint) (pid)
+ (*current_target.to_remove_exec_catchpoint) (&current_target, pid)
/* Syscall catch.