* fork-child.c (fork_inferior): Set inferior_pid before calling

init_trace_fun.  Move the code which gets us through the shell
	to new function startup_inferior.
	* inferior.h: Declare startup_inferior.
	* procfs.c (procfs_init_inferior), inftarg.c (ptrace_him):
	Call startup_inferior.
	* m3-nat.c (m3_trace_him): Call intercept_exec_calls.
	* config/nm-m3.h: Don't define STARTUP_INFERIOR.
	* config/i386/tm-i386m3.h, config/ns32k/tm-ns32k.h,
	config/mips/tm-mipsm3.h: Don't define START_INFERIOR_TRAPS_EXPECTED.
This commit is contained in:
Jim Kingdon
1993-10-27 19:30:27 +00:00
parent 73e7e44744
commit bc28a06cc1
8 changed files with 36 additions and 55 deletions

View File

@ -56,14 +56,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "mips/tm-mips.h"
/*
* On Mach 3.0 this is the number of exec() system calls before
* the task contains the debugged program. It is always 2 when
* using the shell to start up the program.
*/
#undef START_INFERIOR_TRAPS_EXPECTED
#define START_INFERIOR_TRAPS_EXPECTED 2
/* Address of end of user stack space.
* for MACH, see <machine/vmparam.h>
*/