mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user