summaryrefslogtreecommitdiff
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
commit0af33410304a4123e9fcc85a1f60a27d121f4719 (patch)
treea9aca8bce776f51644812d60148065207a87dad2 /gdb/breakpoint.c
parentb1f32d53a5d57017a6081613fc92f23034587bdf (diff)
downloadgdb-0af33410304a4123e9fcc85a1f60a27d121f4719.tar.gz
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 690ec5d218a..3c0e8856d74 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). */