summaryrefslogtreecommitdiff
path: root/gdb/m3-nat.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-27 19:30:27 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-27 19:30:27 +0000
commitbc28a06cc11e2be1d9bd4f4233b3fbbe5ff30654 (patch)
tree78be5c33ffe139db5abfe818092ba4f914087b0b /gdb/m3-nat.c
parent73e7e44744ba0bdfc3e4ab2822a5a818aa993e07 (diff)
downloadbinutils-gdb-bc28a06cc11e2be1d9bd4f4233b3fbbe5ff30654.tar.gz
* 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.
Diffstat (limited to 'gdb/m3-nat.c')
-rw-r--r--gdb/m3-nat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/m3-nat.c b/gdb/m3-nat.c
index fcb7b2057ee..f0707d4a5a8 100644
--- a/gdb/m3-nat.c
+++ b/gdb/m3-nat.c
@@ -1143,6 +1143,9 @@ m3_trace_him (pid)
setup_exception_port ();
xx_debug ("Now the debugged task is created\n");
+
+ /* One trap to exec the shell, one to exec the program being debugged. */
+ intercept_exec_calls (2);
}
setup_exception_port ()