+2005-08-09 Andrew Cagney <cagney@gnu.org>
+
+ * linux-nat.h (linux_proc_xfer_memory): Change type of "myaddr" a
+ "gdb_byte" pointer.
+ * linux-nat.c (linux_proc_xfer_memory): Update.
+ (get_signo): Cast signo to a "gdb_byte" pointer.
+ * i386-linux-nat.c (child_resume): Make "buf" a gdb_byte, delete
+ redundant casts.
+ (child_resume): Cast eflags to a "gdb_byte" pointer.
+
2005-08-08 Mark Kettenis <kettenis@gnu.org>
* tramp-frame.h (struct tramp_frame): Allow for 16 instructions
if (step)
{
CORE_ADDR pc = read_pc_pid (pid_to_ptid (pid));
- unsigned char buf[LINUX_SYSCALL_LEN];
+ gdb_byte buf[LINUX_SYSCALL_LEN];
request = PTRACE_SINGLESTEP;
that's about to be restored, and set the trace flag there. */
/* First check if PC is at a system call. */
- if (deprecated_read_memory_nobpt (pc, (char *) buf, LINUX_SYSCALL_LEN) == 0
+ if (deprecated_read_memory_nobpt (pc, buf, LINUX_SYSCALL_LEN) == 0
&& memcmp (buf, linux_syscall, LINUX_SYSCALL_LEN) == 0)
{
int syscall = read_register_pid (LINUX_SYSCALL_REGNUM,
/* Set the trace flag in the context that's about to be
restored. */
addr += LINUX_SIGCONTEXT_EFLAGS_OFFSET;
- read_memory (addr, (char *) &eflags, 4);
+ read_memory (addr, (gdb_byte *) &eflags, 4);
eflags |= 0x0100;
- write_memory (addr, (char *) &eflags, 4);
+ write_memory (addr, (gdb_byte *) &eflags, 4);
}
}
}
}
int
-linux_proc_xfer_memory (CORE_ADDR addr, char *myaddr, int len, int write,
+linux_proc_xfer_memory (CORE_ADDR addr, gdb_byte *myaddr, int len, int write,
struct mem_attrib *attrib, struct target_ops *target)
{
int fd, ret;
if (ms == NULL)
return 0;
- if (target_read_memory (SYMBOL_VALUE_ADDRESS (ms), (char *) &signo,
+ if (target_read_memory (SYMBOL_VALUE_ADDRESS (ms), (gdb_byte *) &signo,
sizeof (signo)) != 0)
return 0;
struct mem_attrib;
struct target_ops;
-extern int linux_proc_xfer_memory (CORE_ADDR addr, char *myaddr, int len,
+extern int linux_proc_xfer_memory (CORE_ADDR addr, gdb_byte *myaddr, int len,
int write, struct mem_attrib *attrib,
struct target_ops *target);