mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
* config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
CHILD_FOLLOW_FORK. * hppah-nat.c (saved_vfork_pid): Add. (child_post_follow_vfork): Remove. (child_follow_fork): New function. (child_wait): Call detach_breakpoints after receiving the child vfork. Call child_resume directly instead of going through resume (). Make sure we have the exec before reporting the vfork. * inferior.h (follow_inferior_reset_breakpoints): Add prototype. * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove. (follow_fork): New function. Call target_follow_fork. (follow_inferior_reset_breakpoints): New function broken out from old follow_inferior_fork. (resume): Remove hack to follow exec after vfork. * inftarg.c (child_post_follow_vfork): Remove. (child_follow_fork): New function. (init_child_ops): Replace to_post_follow_vfork with to_follow_fork. * target.c (cleanup_target): Replace to_post_follow_vfork with to_follow_fork. (update_current_target): Likewise. (setup_target_debug): Likewise. (debug_to_post_follow_vfork): Remove. (debug_to_follow_fork): New function. * target.h (struct target_ops): Replace to_post_folow_vfork with to_follow_fork. (child_post_follow_vfork): Remove prototype. (child_follow_fork): Add prototype. (target_post_follow_vfork): Remove macro. (target_follow_fork): Add macro. testsuite/ * gdb.base/foll-vfork.exp: Re-enable test on HP/UX.
This commit is contained in:
@@ -469,14 +469,12 @@ child_remove_vfork_catchpoint (int pid)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(CHILD_POST_FOLLOW_VFORK)
|
||||
void
|
||||
child_post_follow_vfork (int parent_pid, int followed_parent, int child_pid,
|
||||
int followed_child)
|
||||
#if !defined(CHILD_FOLLOW_FORK)
|
||||
int
|
||||
child_follow_fork (int follow_child)
|
||||
{
|
||||
/* This version of Unix doesn't require a meaningful "post follow vfork"
|
||||
operation by a clone debugger.
|
||||
*/
|
||||
/* This version of Unix doesn't support following fork or vfork events. */
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -645,7 +643,7 @@ init_child_ops (void)
|
||||
child_ops.to_remove_fork_catchpoint = child_remove_fork_catchpoint;
|
||||
child_ops.to_insert_vfork_catchpoint = child_insert_vfork_catchpoint;
|
||||
child_ops.to_remove_vfork_catchpoint = child_remove_vfork_catchpoint;
|
||||
child_ops.to_post_follow_vfork = child_post_follow_vfork;
|
||||
child_ops.to_follow_fork = child_follow_fork;
|
||||
child_ops.to_insert_exec_catchpoint = child_insert_exec_catchpoint;
|
||||
child_ops.to_remove_exec_catchpoint = child_remove_exec_catchpoint;
|
||||
child_ops.to_reported_exec_events_per_exec_call = child_reported_exec_events_per_exec_call;
|
||||
|
||||
Reference in New Issue
Block a user