mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 07:08:01 +08:00
* 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:
@ -1,3 +1,11 @@
|
|||||||
|
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>
|
2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
|
||||||
|
|
||||||
* NEWS: Document remote "info proc" and "generate-core-file".
|
* NEWS: Document remote "info proc" and "generate-core-file".
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#include "target.h"
|
#include "target.h"
|
||||||
#include "inferior.h"
|
#include "inferior.h"
|
||||||
#include "gdb_string.h"
|
#include "gdb_string.h"
|
||||||
|
#include "gdb_stat.h"
|
||||||
#include "inf-child.h"
|
#include "inf-child.h"
|
||||||
#include "gdb/fileio.h"
|
#include "gdb/fileio.h"
|
||||||
|
|
||||||
@ -33,7 +34,6 @@
|
|||||||
#include <sys/param.h> /* for MAXPATHLEN */
|
#include <sys/param.h> /* for MAXPATHLEN */
|
||||||
#endif
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
@ -402,7 +402,6 @@ linux_info_proc (struct gdbarch *gdbarch, char *args,
|
|||||||
{
|
{
|
||||||
struct cleanup *cleanup = make_cleanup (xfree, data);
|
struct cleanup *cleanup = make_cleanup (xfree, data);
|
||||||
const char *p = data;
|
const char *p = data;
|
||||||
const char *ep;
|
|
||||||
ULONGEST val;
|
ULONGEST val;
|
||||||
|
|
||||||
printf_filtered (_("Process: %s\n"),
|
printf_filtered (_("Process: %s\n"),
|
||||||
@ -410,10 +409,15 @@ linux_info_proc (struct gdbarch *gdbarch, char *args,
|
|||||||
|
|
||||||
while (*p && isspace (*p))
|
while (*p && isspace (*p))
|
||||||
p++;
|
p++;
|
||||||
if (*p == '(' && (ep = strchr (p, ')')) != NULL)
|
if (*p == '(')
|
||||||
{
|
{
|
||||||
printf_filtered ("Exec file: %.*s\n", (int) (ep - p - 1), p + 1);
|
const char *ep = strchr (p, ')');
|
||||||
p = ep + 1;
|
if (ep != NULL)
|
||||||
|
{
|
||||||
|
printf_filtered ("Exec file: %.*s\n",
|
||||||
|
(int) (ep - p - 1), p + 1);
|
||||||
|
p = ep + 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while (*p && isspace (*p))
|
while (*p && isspace (*p))
|
||||||
|
@ -3258,9 +3258,9 @@ target_fileio_pwrite (int fd, const gdb_byte *write_buf, int len,
|
|||||||
|
|
||||||
if (targetdebug)
|
if (targetdebug)
|
||||||
fprintf_unfiltered (gdb_stdlog,
|
fprintf_unfiltered (gdb_stdlog,
|
||||||
"target_fileio_pwrite (%d,%p,%d,%s) "
|
"target_fileio_pwrite (%d,...,%d,%s) "
|
||||||
"= %d (%d)\n",
|
"= %d (%d)\n",
|
||||||
fd, write_buf, len, pulongest (offset),
|
fd, len, pulongest (offset),
|
||||||
ret, ret != -1 ? 0 : *target_errno);
|
ret, ret != -1 ? 0 : *target_errno);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -3288,9 +3288,9 @@ target_fileio_pread (int fd, gdb_byte *read_buf, int len,
|
|||||||
|
|
||||||
if (targetdebug)
|
if (targetdebug)
|
||||||
fprintf_unfiltered (gdb_stdlog,
|
fprintf_unfiltered (gdb_stdlog,
|
||||||
"target_fileio_pread (%d,%p,%d,%s) "
|
"target_fileio_pread (%d,...,%d,%s) "
|
||||||
"= %d (%d)\n",
|
"= %d (%d)\n",
|
||||||
fd, read_buf, len, pulongest (offset),
|
fd, len, pulongest (offset),
|
||||||
ret, ret != -1 ? 0 : *target_errno);
|
ret, ret != -1 ? 0 : *target_errno);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user