1 /* xdr_ld.c - xdr routines for remote dbx interface to VxWorks */
3 /* Copyright 1984, 1985, 1986, 1987, 1988, 1989, 1992, 1993, 1998
4 Free Software Foundation, Inc.
6 This code was donated by Wind River Systems, Inc. */
11 01a,05jun90,llk extracted from xdr_dbx.c.
16 This module contains the eXternal Data Representation (XDR) routines
17 for object files that are downloaded to VxWorks. They are used by
18 remote debuggers that use RPC (such as dbxWorks and vxGdb).
26 /* forward declarations */
28 bool_t
xdr_String(); /* xdr routine for argument list */
31 /*******************************************************************************
33 * xdr_String - xdr routine for strings.
35 * Used by xdr_arg_info to handle the actual argument
36 * strings. normally calls xdr_string - but does something
37 * reasonable encode of null pointer.
40 bool_t
xdr_String (xdrs
, strp
)
45 if ((*strp
== NULL
) & (xdrs
->x_op
== XDR_ENCODE
))
48 return(xdr_string(xdrs
, strp
, MAXSTRLEN
));
50 /*******************************************************************************
52 * xdr_ldfile - xdr routine for a single element in the load table
55 bool_t
xdr_ldfile (xdrs
, objp
)
60 if (! xdr_String(xdrs
, &objp
->name
))
62 if (! xdr_int(xdrs
, &objp
->txt_addr
))
64 if (! xdr_int(xdrs
, &objp
->data_addr
))
66 if (! xdr_int(xdrs
, &objp
->bss_addr
))
71 /*******************************************************************************
75 * xdr routine for a list of files and load addresses loaded into VxWorks.
78 bool_t
xdr_ldtabl (xdrs
,objp
)
83 return (xdr_array (xdrs
, (char **) &objp
->tbl_ent
, (UINT
*) &objp
->tbl_size
,
84 MAXTBLSZ
, sizeof(ldfile
), xdr_ldfile
));
This page took 0.030548 seconds and 4 git commands to generate.