aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Ludvig <mludvig@suse.cz>2002-04-24 15:33:55 +0000
committerMichal Ludvig <mludvig@suse.cz>2002-04-24 15:33:55 +0000
commitd06f167ab353b02267dc687ee4826888ce0337cc (patch)
treeab4e5e613065405fc7fc239476205625e41dae6b
parent062cd5e7fc34f6b63e2672e21b9ee8c69ec358f0 (diff)
downloadgdb-d06f167ab353b02267dc687ee4826888ce0337cc.zip
gdb-d06f167ab353b02267dc687ee4826888ce0337cc.tar.gz
gdb-d06f167ab353b02267dc687ee4826888ce0337cc.tar.bz2
2002-04-24 Michal Ludvig <mludvig@suse.cz>
* gdbserver/linux-low.c (regsets_fetch_inferior_registers), (regsets_store_inferior_registers): Removed cast to int from ptrace() calls. * gdbserver/regcache.h: Added declaration of struct inferior_info.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/gdbserver/linux-low.c4
-rw-r--r--gdb/gdbserver/regcache.h2
3 files changed, 11 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e13160a..b41e30c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2002-04-24 Michal Ludvig <mludvig@suse.cz>
+
+ * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
+ (regsets_store_inferior_registers): Removed cast to int from
+ ptrace() calls.
+ * gdbserver/regcache.h: Added declaration of struct inferior_info.
+
2002-04-24 David S. Miller <davem@redhat.com>
* i960-tdep.c (register_in_window_p): New function.
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 10966e0..6cfe0d5 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -372,7 +372,7 @@ regsets_fetch_inferior_registers (void)
}
buf = malloc (regset->size);
- res = ptrace (regset->get_request, inferior_pid, 0, (int) buf);
+ res = ptrace (regset->get_request, inferior_pid, 0, buf);
if (res < 0)
{
if (errno == EIO)
@@ -421,7 +421,7 @@ regsets_store_inferior_registers (void)
buf = malloc (regset->size);
regset->fill_function (buf);
- res = ptrace (regset->set_request, inferior_pid, 0, (int) buf);
+ res = ptrace (regset->set_request, inferior_pid, 0, buf);
if (res < 0)
{
if (errno == EIO)
diff --git a/gdb/gdbserver/regcache.h b/gdb/gdbserver/regcache.h
index 1b3b926..362288e 100644
--- a/gdb/gdbserver/regcache.h
+++ b/gdb/gdbserver/regcache.h
@@ -21,6 +21,8 @@
#ifndef REGCACHE_H
#define REGCACHE_H
+struct inferior_info;
+
/* Create a new register cache for INFERIOR. */
void create_register_cache (struct inferior_info *inferior);