1 /* xdr_ld.c - xdr routines for remote dbx interface to VxWorks */
3 /* Copyright 1984, 1985, 1986, 1987, 1988, 1989, 1992 Free Software Foundation, Inc.
5 This code was donated by Wind River Systems, Inc. */
10 01a,05jun90,llk extracted from xdr_dbx.c.
15 This module contains the eXternal Data Representation (XDR) routines
16 for object files that are downloaded to VxWorks. They are used by
17 remote debuggers that use RPC (such as dbxWorks and vxGdb).
25 /* forward declarations */
27 bool_t
xdr_String(); /* xdr routine for argument list */
30 /*******************************************************************************
32 * xdr_String - xdr routine for strings.
34 * Used by xdr_arg_info to handle the actual argument
35 * strings. normally calls xdr_string - but does something
36 * reasonable encode of null pointer.
39 bool_t
xdr_String (xdrs
, strp
)
44 if ((*strp
== NULL
) & (xdrs
->x_op
== XDR_ENCODE
))
47 return(xdr_string(xdrs
, strp
, MAXSTRLEN
));
49 /*******************************************************************************
51 * xdr_ldfile - xdr routine for a single element in the load table
54 bool_t
xdr_ldfile (xdrs
, objp
)
59 if (! xdr_String(xdrs
, &objp
->name
))
61 if (! xdr_int(xdrs
, &objp
->txt_addr
))
63 if (! xdr_int(xdrs
, &objp
->data_addr
))
65 if (! xdr_int(xdrs
, &objp
->bss_addr
))
70 /*******************************************************************************
74 * xdr routine for a list of files and load addresses loaded into VxWorks.
77 bool_t
xdr_ldtabl (xdrs
,objp
)
82 return (xdr_array (xdrs
, (char *) &objp
->tbl_ent
, (UINT
*) &objp
->tbl_size
,
83 MAXTBLSZ
, sizeof(ldfile
), xdr_ldfile
));
This page took 0.030386 seconds and 4 git commands to generate.