X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Finf-child.c;h=7909b0c2a42d344263f9c61abad691a10db248fa;hb=a12ac51333cf97f4da0597d049cc694b4535e7dd;hp=0326a93ae326f86a547e762f93419ed62d0ead43;hpb=07c138c8ae2b11d417c9799202363a95a2d06881;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/inf-child.c b/gdb/inf-child.c index 0326a93ae3..7909b0c2a4 100644 --- a/gdb/inf-child.c +++ b/gdb/inf-child.c @@ -1,6 +1,6 @@ /* Base/prototype target for default child (native) targets. - Copyright (C) 1988-2015 Free Software Foundation, Inc. + Copyright (C) 1988-2016 Free Software Foundation, Inc. This file is part of GDB. @@ -209,7 +209,8 @@ inf_child_pid_to_exec_file (struct target_ops *self, int pid) static int inf_child_fileio_open (struct target_ops *self, struct inferior *inf, const char *filename, - int flags, int mode, int *target_errno) + int flags, int mode, int warn_if_slow, + int *target_errno) { int nat_flags; mode_t nat_mode; @@ -351,7 +352,7 @@ inf_child_fileio_readlink (struct target_ops *self, return NULL; } - ret = xmalloc (len + 1); + ret = (char *) xmalloc (len + 1); memcpy (ret, buf, len); ret[len] = '\0'; return ret;