* 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.
This commit is contained in:
parent
d12c31dfa7
commit
a71b5a3812
4 changed files with 21 additions and 9 deletions
|
@ -402,7 +402,6 @@ linux_info_proc (struct gdbarch *gdbarch, char *args,
|
|||
{
|
||||
struct cleanup *cleanup = make_cleanup (xfree, data);
|
||||
const char *p = data;
|
||||
const char *ep;
|
||||
ULONGEST val;
|
||||
|
||||
printf_filtered (_("Process: %s\n"),
|
||||
|
@ -410,10 +409,15 @@ linux_info_proc (struct gdbarch *gdbarch, char *args,
|
|||
|
||||
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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue