summaryrefslogtreecommitdiff
path: root/gdb
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
commit0240bc9ba5d4b394ef3f2c09e5dbe48dea08bde3 (patch)
tree4f54cd2fa3ac810d91722c4dbe28ae78df28bfb9 /gdb
parentb270c666ffec205f602ac88488cc7f9be42fb571 (diff)
downloadgdb-0240bc9ba5d4b394ef3f2c09e5dbe48dea08bde3.tar.gz
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')
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/i386-linux-nat.c8
-rw-r--r--gdb/linux-nat.c4
-rw-r--r--gdb/linux-nat.h2
4 files changed, 17 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 019b4fbcb16..d256026c983 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,13 @@
+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
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index 9ea55a1b2ed..b6c669119a2 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);
}
}
}
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index e996dc264ae..3c2821935ef 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -2946,7 +2946,7 @@ linux_nat_info_proc_cmd (char *args, int from_tty)
}
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;
@@ -3128,7 +3128,7 @@ get_signo (const char *name)
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;
diff --git a/gdb/linux-nat.h b/gdb/linux-nat.h
index 74a8286b35c..a90094319e9 100644
--- a/gdb/linux-nat.h
+++ b/gdb/linux-nat.h
@@ -68,7 +68,7 @@ struct lwp_info
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);