aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-low.c
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 /gdb/gdbserver/linux-low.c
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.
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r--gdb/gdbserver/linux-low.c4
1 files changed, 2 insertions, 2 deletions
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)