diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-01-18 17:04:28 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-01-18 17:04:28 +0000 |
commit | fa113d1a304c4653f02494b7b7c56ebfc3891bf5 (patch) | |
tree | ba931c581554b9b4a104224e28296d6cb90bc7cb /gdb/target.c | |
parent | 9ee907e0a04fd062374ea23e64664040aed425c9 (diff) | |
download | gdb-fa113d1a304c4653f02494b7b7c56ebfc3891bf5.zip gdb-fa113d1a304c4653f02494b7b7c56ebfc3891bf5.tar.gz gdb-fa113d1a304c4653f02494b7b7c56ebfc3891bf5.tar.bz2 |
2005-01-18 Andrew Cagney <cagney@gnu.org>
* target.h (struct target_ops): Change return type of
to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
to_insert_exec_catchpoint to void.
(child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
(child_insert_exec_catchpoint): Change return type to void.
* target.c (update_current_target): Update.
(debug_to_insert_fork_catchpoint)
(debug_to_insert_vfork_catchpoint)
(debug_to_insert_exec_catchpoint): Update.
* inf-child.c (inf_child_insert_fork_catchpoint)
(inf_child_insert_vfork_catchpoint)
(inf_child_insert_exec_catchpoint): Update.
* breakpoint.c (insert_catchpoint): Update, do not throw an error.
* linux-nat.c (child_insert_fork_catchpoint)
(child_insert_vfork_catchpoint)
(child_insert_exec_catchpoint): Update.
* inftarg.c (child_insert_fork_catchpoint)
(child_insert_vfork_catchpoint,)
(child_insert_exec_catchpoint): Update.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 42 |
1 files changed, 15 insertions, 27 deletions
diff --git a/gdb/target.c b/gdb/target.c index 81389a7..bade14c 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -566,13 +566,13 @@ update_current_target (void) (void (*) (int)) target_ignore); de_fault (to_insert_fork_catchpoint, - (int (*) (int)) + (void (*) (int)) tcomplain); de_fault (to_remove_fork_catchpoint, (int (*) (int)) tcomplain); de_fault (to_insert_vfork_catchpoint, - (int (*) (int)) + (void (*) (int)) tcomplain); de_fault (to_remove_vfork_catchpoint, (int (*) (int)) @@ -581,7 +581,7 @@ update_current_target (void) (int (*) (int)) target_ignore); de_fault (to_insert_exec_catchpoint, - (int (*) (int)) + (void (*) (int)) tcomplain); de_fault (to_remove_exec_catchpoint, (int (*) (int)) @@ -2257,17 +2257,13 @@ debug_to_acknowledge_created_inferior (int pid) pid); } -static int +static void debug_to_insert_fork_catchpoint (int pid) { - int retval; - - retval = debug_target.to_insert_fork_catchpoint (pid); - - fprintf_unfiltered (gdb_stdlog, "target_insert_fork_catchpoint (%d) = %d\n", - pid, retval); + debug_target.to_insert_fork_catchpoint (pid); - return retval; + fprintf_unfiltered (gdb_stdlog, "target_insert_fork_catchpoint (%d)\n", + pid); } static int @@ -2283,17 +2279,13 @@ debug_to_remove_fork_catchpoint (int pid) return retval; } -static int +static void debug_to_insert_vfork_catchpoint (int pid) { - int retval; - - retval = debug_target.to_insert_vfork_catchpoint (pid); - - fprintf_unfiltered (gdb_stdlog, "target_insert_vfork_catchpoint (%d)= %d\n", - pid, retval); + debug_target.to_insert_vfork_catchpoint (pid); - return retval; + fprintf_unfiltered (gdb_stdlog, "target_insert_vfork_catchpoint (%d)\n", + pid); } static int @@ -2320,17 +2312,13 @@ debug_to_follow_fork (int follow_child) return retval; } -static int +static void debug_to_insert_exec_catchpoint (int pid) { - int retval; + debug_target.to_insert_exec_catchpoint (pid); - retval = debug_target.to_insert_exec_catchpoint (pid); - - fprintf_unfiltered (gdb_stdlog, "target_insert_exec_catchpoint (%d) = %d\n", - pid, retval); - - return retval; + fprintf_unfiltered (gdb_stdlog, "target_insert_exec_catchpoint (%d)\n", + pid); } static int |