home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / gdb-4.9 / gdb / vx-share / xdr_ptrace.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-12  |  1.4 KB  |  71 lines

  1. /* xdr_ptrace.h - xdr header for remote ptrace structures */
  2.  
  3. /*  Copyright 1992 Free Software Foundation, Inc.
  4.  
  5.     This code was donated by Wind River Systems, Inc. */
  6.  
  7. /*
  8. modification history
  9. --------------------
  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.
  14. */
  15.  
  16.  
  17. /*
  18.  *  Counted byte structure used by READ/WRITE TEXT/DATA
  19.  *  and GET/SET REGS/FPREGS
  20.  */
  21. struct c_bytes {
  22.     u_int    len;
  23.     caddr_t    bytes;
  24. };
  25. typedef struct c_bytes C_bytes;
  26.  
  27. /*
  28.  * enum for discriminated union ptrace_info
  29.  */
  30. enum ptype {
  31.     NOINFO = 0,        /* no additional infomation    */
  32.     DATA = 1        /* c_bytes */
  33. };
  34. typedef enum ptype ptype;
  35.  
  36. /*
  37.  * discrimnated union for passing additional data to be 
  38.  * written to the debugged process.
  39.  */
  40. struct ptrace_info {
  41.     ptype    ttype;
  42.     caddr_t    more_data;    
  43. };
  44. typedef struct ptrace_info Ptrace_info;
  45.  
  46. /*
  47.  * structure passed to server on all remote ptrace calls
  48.  */
  49. struct rptrace {
  50.     int     pid;
  51.     int     data;
  52.     int     addr;    /* FIX! this really should be caddr_t or something */
  53.     Ptrace_info    info;
  54. };
  55. typedef struct rptrace Rptrace;
  56.  
  57. /*
  58.  * structure returned by server on all remote ptrace calls
  59.  */
  60. struct ptrace_return {
  61.     int status;
  62.     int errno;
  63.     Ptrace_info    info;
  64. };
  65. typedef struct ptrace_return Ptrace_return;
  66.  
  67. bool_t xdr_c_bytes();
  68. bool_t xdr_ptrace_info();
  69. bool_t xdr_rptrace();
  70. bool_t xdr_ptrace_return();
  71.