1 /* xdr_ptrace.h - xdr header for remote ptrace structures */
3 /* Copyright 1992, 1998 Free Software Foundation, Inc.
5 This code was donated by Wind River Systems, Inc. */
10 01b,25may91,maf now uses counted bytes struct to transfer registers;
11 removed references to old xdr_regs functions.
12 removed includes of "xdr_regs.h" and "reg.h".
13 01a,05jun90,llk extracted from xdr_ptrace.h.
18 * Counted byte structure used by READ/WRITE TEXT/DATA
19 * and GET/SET REGS/FPREGS
25 typedef struct c_bytes C_bytes
;
28 * enum for discriminated union ptrace_info
31 NOINFO
= 0, /* no additional infomation */
32 DATA
= 1 /* c_bytes */
34 typedef enum ptype ptype
;
37 * discrimnated union for passing additional data to be
38 * written to the debugged process.
44 typedef struct ptrace_info Ptrace_info
;
47 * structure passed to server on all remote ptrace calls
52 int addr
; /* FIX! this really should be caddr_t or something */
55 typedef struct rptrace Rptrace
;
58 * structure returned by server on all remote ptrace calls
60 /* This used to have a field called errno, but that fails on hosts which
61 define errno to be a macro, so it was changed to errno_num. */
62 struct ptrace_return
{
67 typedef struct ptrace_return Ptrace_return
;
70 bool_t
xdr_ptrace_info();
72 bool_t
xdr_ptrace_return();