diff options
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index e23f501..924bfcd 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -581,9 +581,11 @@ child_create_inferior (exec_file, allargs, env) for the inferior. */ #ifdef USE_PROC_FS - proc_set_exec_trap (); /* Use SVR4 /proc interface */ + /* Use SVR4 /proc interface */ + proc_set_exec_trap (); #else - call_ptrace (0, 0, 0, 0); /* "Trace me, Dr. Memory!" */ + /* "Trace me, Dr. Memory!" */ + call_ptrace (0, 0, (PTRACE_ARG3_TYPE) 0, 0); #endif /* There is no execlpe call, so we have to set the environment |