mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-16 20:32:21 +08:00
* proc-api.c (write_with_trace): Change 'arg' from long to int.
Treat 'off_t' and 'size_t' as unsigned long in printfs. (lseek_with_trace): Treat 'off_t' as unsigned long in printf.
This commit is contained in:
@ -6,7 +6,10 @@ Thu Apr 27 10:06:42 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
|||||||
|
|
||||||
* utils.c (internal_verror): Call target_terminal_ours.
|
* utils.c (internal_verror): Call target_terminal_ours.
|
||||||
* wrapper.h: fix minor comment typo.
|
* wrapper.h: fix minor comment typo.
|
||||||
|
* proc-api.c (write_with_trace): Change 'arg' from long to int.
|
||||||
|
Treat 'off_t' and 'size_t' as unsigned long in printfs.
|
||||||
|
(lseek_with_trace): Treat 'off_t' as unsigned long in printf.
|
||||||
|
|
||||||
2000-04-26 Kevin Buettner <kevinb@redhat.com>
|
2000-04-26 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
* config/djgpp/fnchange.lst (ia64-linux-nat.c): Map to
|
* config/djgpp/fnchange.lst (ia64-linux-nat.c): Map to
|
||||||
|
@ -440,14 +440,14 @@ static off_t lseek_offset;
|
|||||||
int
|
int
|
||||||
write_with_trace (fd, arg, len, file, line)
|
write_with_trace (fd, arg, len, file, line)
|
||||||
int fd;
|
int fd;
|
||||||
long *arg;
|
int *arg;
|
||||||
size_t len;
|
size_t len;
|
||||||
char *file;
|
char *file;
|
||||||
int line;
|
int line;
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
long opcode = arg[0];
|
|
||||||
int ret;
|
int ret;
|
||||||
|
int opcode = arg[0];
|
||||||
|
|
||||||
if (procfs_trace)
|
if (procfs_trace)
|
||||||
{
|
{
|
||||||
@ -558,7 +558,8 @@ write_with_trace (fd, arg, len, file, line)
|
|||||||
if (len == sizeof (break_insn) &&
|
if (len == sizeof (break_insn) &&
|
||||||
memcmp (arg, &break_insn, len) == 0)
|
memcmp (arg, &break_insn, len) == 0)
|
||||||
fprintf (procfs_file ? procfs_file : stdout,
|
fprintf (procfs_file ? procfs_file : stdout,
|
||||||
"write (<breakpoint at 0x%08x>) \n", lseek_offset);
|
"write (<breakpoint at 0x%08lx>) \n",
|
||||||
|
(unsigned long) lseek_offset);
|
||||||
else if (rw_table[i].name)
|
else if (rw_table[i].name)
|
||||||
fprintf (procfs_file ? procfs_file : stdout,
|
fprintf (procfs_file ? procfs_file : stdout,
|
||||||
"write (%s) %s\n",
|
"write (%s) %s\n",
|
||||||
@ -568,11 +569,12 @@ write_with_trace (fd, arg, len, file, line)
|
|||||||
{
|
{
|
||||||
if (lseek_offset != -1)
|
if (lseek_offset != -1)
|
||||||
fprintf (procfs_file ? procfs_file : stdout,
|
fprintf (procfs_file ? procfs_file : stdout,
|
||||||
"write (<unknown>, %d bytes at 0x%08x) \n",
|
"write (<unknown>, %lud bytes at 0x%08lx) \n",
|
||||||
len, lseek_offset);
|
(unsigned long) len, (unsigned long) lseek_offset);
|
||||||
else
|
else
|
||||||
fprintf (procfs_file ? procfs_file : stdout,
|
fprintf (procfs_file ? procfs_file : stdout,
|
||||||
"write (<unknown>, %d bytes) \n", len);
|
"write (<unknown>, %lud bytes) \n",
|
||||||
|
(unsigned long) len);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -580,7 +582,7 @@ write_with_trace (fd, arg, len, file, line)
|
|||||||
if (procfs_file)
|
if (procfs_file)
|
||||||
fflush (procfs_file);
|
fflush (procfs_file);
|
||||||
}
|
}
|
||||||
ret = write (fd, arg, len);
|
ret = write (fd, (void *) arg, len);
|
||||||
if (procfs_trace && ret != len)
|
if (procfs_trace && ret != len)
|
||||||
{
|
{
|
||||||
fprintf (procfs_file ? procfs_file : stdout,
|
fprintf (procfs_file ? procfs_file : stdout,
|
||||||
@ -632,7 +634,7 @@ lseek_with_trace (fd, offset, whence, file, line)
|
|||||||
procfs_file = fopen (procfs_filename, "a");
|
procfs_file = fopen (procfs_filename, "a");
|
||||||
|
|
||||||
fprintf (procfs_file ? procfs_file : stdout,
|
fprintf (procfs_file ? procfs_file : stdout,
|
||||||
"[lseek (0x%08x) FAILED!\n", offset);
|
"[lseek (0x%08lx) FAILED!\n", (unsigned long) offset);
|
||||||
if (procfs_file)
|
if (procfs_file)
|
||||||
fflush (procfs_file);
|
fflush (procfs_file);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user