1 /* xdr_rdb.c - xdr routines for Remote Debug interface to VxWorks */
3 /* Copyright 1992 Free Software Foundation, Inc.
5 This code was donated by Wind River Systems, Inc. */
10 01a,21mar90,llk created using modification 01d of xdr_dbx.c.
15 This module contains the eXternal Data Representation (XDR) routines
16 for the RDB interface for VxWorks.
24 /* forward declarations */
27 xdr_arg_type(xdrs
, objp
)
31 if (!xdr_enum(xdrs
, (enum_t
*)objp
)) {
38 xdr_arg_value(xdrs
, objp
)
42 if (!xdr_arg_type(xdrs
, &objp
->type
)) {
47 if (!xdr_char(xdrs
, &objp
->arg_value_u
.v_byte
)) {
52 if (!xdr_short(xdrs
, &objp
->arg_value_u
.v_word
)) {
57 if (!xdr_int(xdrs
, &objp
->arg_value_u
.v_int
)) {
62 if (!xdr_float(xdrs
, &objp
->arg_value_u
.v_fp
)) {
67 if (!xdr_double(xdrs
, &objp
->arg_value_u
.v_dp
)) {
78 xdr_func_call(xdrs
, objp
)
82 if (!xdr_int(xdrs
, &objp
->func_addr
)) {
85 if (!xdr_array(xdrs
, (char **)&objp
->args
.args_val
, (u_int
*)&objp
->args
.args_len
, MAX_FUNC_ARGS
, sizeof(arg_value
), xdr_arg_value
)) {
92 xdr_arg_one(xdrs
, objp
)
96 if (!xdr_string(xdrs
, objp
, MAX_ARG_LEN
)) {
106 xdr_arg_array(xdrs
, objp
)
110 if (!xdr_array(xdrs
, (char **)&objp
->arg_array_val
, (u_int
*)&objp
->arg_array_len
, MAX_ARG_CNT
, sizeof(arg_one
), xdr_arg_one
)) {
116 /*********************************************************************
122 bool_t
xdr_EVENT_TYPE(xdrs
, objp
)
127 if (!xdr_enum (xdrs
, (enum_t
*) objp
))
132 /*********************************************************************
138 bool_t
xdr_RDB_EVENT (xdrs
, objp
)
143 if (!xdr_int (xdrs
, &objp
->status
))
145 if (!xdr_int (xdrs
, &objp
->taskId
))
147 if (!xdr_EVENT_TYPE (xdrs
, &objp
->eventType
))
149 if (!xdr_int (xdrs
, &objp
->sigType
))
154 /*********************************************************************
161 xdr_TASK_START (xdrs
, objp
)
166 if (!xdr_int (xdrs
, &objp
->status
))
168 if (!xdr_int (xdrs
, &objp
->pid
))
174 /*********************************************************************
181 xdr_SYMBOL_ADDR (xdrs
, objp
)
186 if (!xdr_int (xdrs
, &objp
->status
))
188 if (!xdr_u_int (xdrs
, &objp
->addr
))
193 /*********************************************************************
200 xdr_SOURCE_STEP (xdrs
, objp
)
205 if (!xdr_int (xdrs
, &objp
->taskId
))
207 if (!xdr_u_int (xdrs
, &objp
->startAddr
))
209 if (!xdr_u_int (xdrs
, &objp
->endAddr
))
This page took 0.035929 seconds and 4 git commands to generate.