/* Read a register or registers from the remote system. */
-static void
+void
net_read_registers (reg_buf, len, procnum)
char *reg_buf;
int len;
C_bytes out_data;
char message[100];
- bzero ((char *) &ptrace_in, sizeof (ptrace_in));
- bzero ((char *) &ptrace_out, sizeof (ptrace_out));
+ memset ((char *) &ptrace_in, '\0', sizeof (ptrace_in));
+ memset ((char *) &ptrace_out, '\0', sizeof (ptrace_out));
/* Initialize RPC input argument structure. */
error (rpcerr);
if (ptrace_out.status == -1)
{
- errno = ptrace_out.errno_val;
+ errno = ptrace_out.errno;
sprintf (message, "reading %s registers", (procnum == PTRACE_GETREGS)
? "general-purpose"
: "floating-point");
C_bytes in_data;
char message[100];
- bzero ((char *) &ptrace_in, sizeof (ptrace_in));
- bzero ((char *) &ptrace_out, sizeof (ptrace_out));
+ memset ((char *) &ptrace_in, '\0', sizeof (ptrace_in));
+ memset ((char *) &ptrace_out, '\0', sizeof (ptrace_out));
/* Initialize RPC input argument structure. */
error (rpcerr);
if (ptrace_out.status == -1)
{
- errno = ptrace_out.errno_val;
+ errno = ptrace_out.errno;
sprintf (message, "writing %s registers", (procnum == PTRACE_SETREGS)
? "general-purpose"
: "floating-point");
Ptrace_return ptrace_out;
C_bytes data;
enum ptracereq request;
+ int nleft, nxfer;
memset ((char *) &ptrace_in, '\0', sizeof (ptrace_in));
memset ((char *) &ptrace_out, '\0', sizeof (ptrace_out));
code chosen by the target so that a later perror () will
say something meaningful. */
- errno = ptrace_out.errno_val;
+ errno = ptrace_out.errno;
}
}