aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-01-18 17:04:28 +0000
committerAndrew Cagney <cagney@redhat.com>2005-01-18 17:04:28 +0000
commitfa113d1a304c4653f02494b7b7c56ebfc3891bf5 (patch)
treeba931c581554b9b4a104224e28296d6cb90bc7cb /gdb/breakpoint.c
parent9ee907e0a04fd062374ea23e64664040aed425c9 (diff)
downloadgdb-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/breakpoint.c')
-rw-r--r--gdb/breakpoint.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 690ec5d..3c0e885 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -718,21 +718,18 @@ insert_catchpoint (struct ui_out *uo, void *args)
switch (b->type)
{
case bp_catch_fork:
- val = target_insert_fork_catchpoint (PIDGET (inferior_ptid));
+ target_insert_fork_catchpoint (PIDGET (inferior_ptid));
break;
case bp_catch_vfork:
- val = target_insert_vfork_catchpoint (PIDGET (inferior_ptid));
+ target_insert_vfork_catchpoint (PIDGET (inferior_ptid));
break;
case bp_catch_exec:
- val = target_insert_exec_catchpoint (PIDGET (inferior_ptid));
+ target_insert_exec_catchpoint (PIDGET (inferior_ptid));
break;
default:
internal_error (__FILE__, __LINE__, "unknown breakpoint type");
break;
}
-
- if (val < 0)
- throw_reason (RETURN_ERROR);
}
/* Helper routine: free the value chain for a breakpoint (watchpoint). */