aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-linux-nat.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-08-09 16:35:45 +0000
committerAndrew Cagney <cagney@redhat.com>2005-08-09 16:35:45 +0000
commit8e70166dc52cf82a61e0a414f364f3ff7c45dfa7 (patch)
treea0627b1f2464d595d1f921864bf63302783a66a0 /gdb/i386-linux-nat.c
parent2f6178c175ba113600c532b8fc84e8d54beddb78 (diff)
downloadgdb-8e70166dc52cf82a61e0a414f364f3ff7c45dfa7.zip
gdb-8e70166dc52cf82a61e0a414f364f3ff7c45dfa7.tar.gz
gdb-8e70166dc52cf82a61e0a414f364f3ff7c45dfa7.tar.bz2
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.
Diffstat (limited to 'gdb/i386-linux-nat.c')
-rw-r--r--gdb/i386-linux-nat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index 9ea55a1..b6c6691 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -770,7 +770,7 @@ child_resume (ptid_t ptid, int step, enum target_signal signal)
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;
@@ -783,7 +783,7 @@ child_resume (ptid_t ptid, int step, enum target_signal signal)
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,
@@ -802,9 +802,9 @@ child_resume (ptid_t ptid, int step, enum target_signal signal)
/* 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);
}
}
}