From 17e245fee09354432a01380c0605c611394a30d9 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sat, 30 Dec 2006 15:56:00 +0000 Subject: * infrun.c (handle_inferior_event): Don't call ENSURE_VFORKING_PARENT_REMAINS_STOPPED. * target.h (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): Delete. (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): Delete. --- gdb/ChangeLog | 7 +++++++ gdb/infrun.c | 3 --- gdb/target.h | 22 ---------------------- 3 files changed, 7 insertions(+), 25 deletions(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ab1f299..dbf9b01 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2006-12-30 Daniel Jacobowitz + + * infrun.c (handle_inferior_event): Don't call + ENSURE_VFORKING_PARENT_REMAINS_STOPPED. + * target.h (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): Delete. + (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): Delete. + 2006-12-29 Mark Kettenis * sparc-tdep.c (sparc_psr_type, sparc_fsr_type): New variables. diff --git a/gdb/infrun.c b/gdb/infrun.c index b9652f6..3559011 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1454,9 +1454,6 @@ handle_inferior_event (struct execution_control_state *ecs) if (inferior_ignoring_leading_exec_events) { inferior_ignoring_leading_exec_events--; - if (pending_follow.kind == TARGET_WAITKIND_VFORKED) - ENSURE_VFORKING_PARENT_REMAINS_STOPPED (pending_follow.fork_event. - parent_pid); target_resume (ecs->ptid, 0, TARGET_SIGNAL_0); prepare_to_wait (ecs); return; diff --git a/gdb/target.h b/gdb/target.h index 412bf93..179e387 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -1186,28 +1186,6 @@ extern int target_stopped_data_address_p (struct target_ops *); extern const struct target_desc *target_read_description (struct target_ops *); -/* This will only be defined by a target that supports catching vfork events, - such as HP-UX. - - On some targets (such as HP-UX 10.20 and earlier), resuming a newly vforked - child process after it has exec'd, causes the parent process to resume as - well. To prevent the parent from running spontaneously, such targets should - define this to a function that prevents that from happening. */ -#if !defined(ENSURE_VFORKING_PARENT_REMAINS_STOPPED) -#define ENSURE_VFORKING_PARENT_REMAINS_STOPPED(PID) (0) -#endif - -/* This will only be defined by a target that supports catching vfork events, - such as HP-UX. - - On some targets (such as HP-UX 10.20 and earlier), a newly vforked child - process must be resumed when it delivers its exec event, before the parent - vfork event will be delivered to us. */ - -#if !defined(RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK) -#define RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK() (0) -#endif - /* Routines for maintenance of the target structures... add_target: Add a target to the list of all possible targets. -- cgit v1.1