+2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
+
+ * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
+ * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
+ * target.c (target_fileio_pwrite): Remove buffer address from
+ debug output.
+ (target_fileio_pread): Likewise.
+
2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
* NEWS: Document remote "info proc" and "generate-core-file".
{
struct cleanup *cleanup = make_cleanup (xfree, data);
const char *p = data;
- const char *ep;
ULONGEST val;
printf_filtered (_("Process: %s\n"),
while (*p && isspace (*p))
p++;
- if (*p == '(' && (ep = strchr (p, ')')) != NULL)
+ if (*p == '(')
{
- printf_filtered ("Exec file: %.*s\n", (int) (ep - p - 1), p + 1);
- p = ep + 1;
+ const char *ep = strchr (p, ')');
+ if (ep != NULL)
+ {
+ printf_filtered ("Exec file: %.*s\n",
+ (int) (ep - p - 1), p + 1);
+ p = ep + 1;
+ }
}
while (*p && isspace (*p))
if (targetdebug)
fprintf_unfiltered (gdb_stdlog,
- "target_fileio_pwrite (%d,%p,%d,%s) "
+ "target_fileio_pwrite (%d,...,%d,%s) "
"= %d (%d)\n",
- fd, write_buf, len, pulongest (offset),
+ fd, len, pulongest (offset),
ret, ret != -1 ? 0 : *target_errno);
return ret;
}
if (targetdebug)
fprintf_unfiltered (gdb_stdlog,
- "target_fileio_pread (%d,%p,%d,%s) "
+ "target_fileio_pread (%d,...,%d,%s) "
"= %d (%d)\n",
- fd, read_buf, len, pulongest (offset),
+ fd, len, pulongest (offset),
ret, ret != -1 ? 0 : *target_errno);
return ret;
}