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.
This commit is contained in:
parent
062cd5e7fc
commit
d06f167ab3
3 changed files with 11 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue