aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1991-10-24 10:47:11 +0000
committerFred Fish <fnf@specifix.com>1991-10-24 10:47:11 +0000
commit63ac7ef33f50cf37462497b457e947bce1b2abbf (patch)
tree154fdece595381c715db5a3afd1a70387afbee5f /gdb
parent2bc2e684ad390d727cd9637b59815d12a16fbaf4 (diff)
downloadgdb-63ac7ef33f50cf37462497b457e947bce1b2abbf.zip
gdb-63ac7ef33f50cf37462497b457e947bce1b2abbf.tar.gz
gdb-63ac7ef33f50cf37462497b457e947bce1b2abbf.tar.bz2
When using SVR4 /proc interface, call proc_set_exec_trap() rather than
ptrace(), to arrange for child to stop on first instruction.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/infrun.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index ce7da91..e674d4d 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -565,7 +565,11 @@ child_create_inferior (exec_file, allargs, env)
initialize_signals for how we get the right signal handlers
for the inferior. */
+#ifdef USE_PROC_FS
+ proc_set_exec_trap (); /* Use SVR4 /proc interface */
+#else
call_ptrace (0, 0, 0, 0); /* "Trace me, Dr. Memory!" */
+#endif
/* There is no execlpe call, so we have to set the environment
for our child in the global variable. If we've vforked, this