From d06f167ab353b02267dc687ee4826888ce0337cc Mon Sep 17 00:00:00 2001 From: Michal Ludvig Date: Wed, 24 Apr 2002 15:33:55 +0000 Subject: [PATCH] 2002-04-24 Michal Ludvig * 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. --- gdb/ChangeLog | 7 +++++++ gdb/gdbserver/linux-low.c | 4 ++-- gdb/gdbserver/regcache.h | 2 ++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e13160a2b9f..b41e30cba08 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2002-04-24 Michal Ludvig + + * 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 * i960-tdep.c (register_in_window_p): New function. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 10966e0afe6..6cfe0d5aea5 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 1b3b926a2c0..362288ee049 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); -- 2.30.2