X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Finf-ptrace.c;h=a64c8764ed1b75309b160ab9f70007aeb4f257f5;hb=6b6aa828818fa4a5754fb8520751077146d9d16c;hp=046e0ce9668a8f67d146b0556eb65079e5c5ce23;hpb=25f435004904ce1dce520d7dcc40eb9b623e244e;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c index 046e0ce966..a64c8764ed 100644 --- a/gdb/inf-ptrace.c +++ b/gdb/inf-ptrace.c @@ -1,6 +1,6 @@ /* Low-level child interface to ptrace. - Copyright (C) 1988-2013 Free Software Foundation, Inc. + Copyright (C) 1988-2014 Free Software Foundation, Inc. This file is part of GDB. @@ -26,7 +26,7 @@ #include "regcache.h" #include "gdb_assert.h" -#include "gdb_string.h" +#include #include "gdb_ptrace.h" #include "gdb_wait.h" #include @@ -40,7 +40,8 @@ #ifdef PT_GET_PROCESS_STATE static int -inf_ptrace_follow_fork (struct target_ops *ops, int follow_child) +inf_ptrace_follow_fork (struct target_ops *ops, int follow_child, + int detach_fork) { pid_t pid, fpid; ptrace_state_t pe; @@ -136,9 +137,6 @@ inf_ptrace_create_inferior (struct target_ops *ops, discard_cleanups (back_to); - /* START_INFERIOR_TRAPS_EXPECTED is defined in inferior.h, and will - be 1 or 2 depending on whether we're starting without or with a - shell. */ startup_inferior (START_INFERIOR_TRAPS_EXPECTED); /* On some targets, there must be some explicit actions taken after @@ -266,7 +264,7 @@ inf_ptrace_post_attach (int pid) specified by ARGS. If FROM_TTY is non-zero, be chatty about it. */ static void -inf_ptrace_detach (struct target_ops *ops, char *args, int from_tty) +inf_ptrace_detach (struct target_ops *ops, const char *args, int from_tty) { pid_t pid = ptid_get_pid (inferior_ptid); int sig = 0; @@ -465,7 +463,7 @@ static LONGEST inf_ptrace_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, - ULONGEST offset, LONGEST len) + ULONGEST offset, ULONGEST len) { pid_t pid = ptid_get_pid (inferior_ptid);