summaryrefslogtreecommitdiffstats
path: root/gdb/vx-share/xdr_rdb.h
blob: 01894536297072777a68b7aa59c35a3a4e1d7b3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/* xdr_rdb.h - xdr for additional rdb structures */

/* Copyright 1992 Free Software Foundation, Inc.

   This code was donated by Wind River Systems, Inc. */

/*
modification history
--------------------
01c,25may91,maf  rolled RDBVERS for VxGDB 1.0 version.
01b,12apr91,maf  rolled RDBVERS.
01a,09jan91,maf  created using v1a of xdr_rdb.h for 4.0.2 VxWorks 68k.
		 added struct SOURCE_STEP.
*/

#ifndef INCxdrrdbh
#define INCxdrrdbh

enum arg_type {
        T_UNKNOWN = 0,
        T_BYTE = 1,
        T_WORD = 2,
        T_INT = 3,
        T_FLOAT = 4,
        T_DOUBLE = 5
};
typedef enum arg_type arg_type;
bool_t xdr_arg_type();


struct arg_value {
        arg_type type;
        union {
                char v_byte;
                short v_word;
                int v_int;
                float v_fp;
                double v_dp;
        } arg_value_u;
};
typedef struct arg_value arg_value;
bool_t xdr_arg_value();

struct func_call {
        int func_addr;
        struct {
                u_int args_len;
                arg_value *args_val;
        } args;
};
typedef struct func_call func_call;
bool_t xdr_func_call();


typedef char *arg_one;
bool_t xdr_arg_one();


typedef struct {
        u_int arg_array_len;
        arg_one *arg_array_val;
} arg_array;
bool_t xdr_arg_array();


/*
 * Structures used to pass structures required for
 * process control but not part of the standard ptrace interface
 */

/*
 * arg_info is used to pass arguments into process start
 */
struct arg_info {
	int rargc;
	char **rargv;
};
typedef struct arg_info Arg_info;


enum EVENT_TYPE {
        EVENT_BREAK = 0,
        EVENT_STOP = 1,
        EVENT_EXIT = 2,
        EVENT_BUS_ERR = 3,
        EVENT_SUSPEND = 4,
        EVENT_ZERO_DIV = 5,
        EVENT_SIGNAL = 6,
        EVENT_START = 7
};
typedef enum EVENT_TYPE EVENT_TYPE;


struct RDB_EVENT {
	int status;
	int taskId;
        EVENT_TYPE eventType;
        int sigType;
};
typedef struct RDB_EVENT RDB_EVENT;


struct TASK_START {
        int status;
        int pid;
};
typedef struct TASK_START TASK_START;


struct SYMBOL_ADDR {
        int status;
        u_int addr;
};
typedef struct SYMBOL_ADDR SYMBOL_ADDR;

struct SOURCE_STEP {
	int taskId;
	u_int startAddr;
	u_int endAddr;
};
typedef struct SOURCE_STEP SOURCE_STEP;

#define MAX_ARG_CNT 10
#define MAX_FUNC_ARGS 100
#define MAX_ARG_LEN   100


bool_t xdr_arg_info();
bool_t xdr_EVENT_TYPE();
bool_t xdr_RDB_EVENT();
bool_t xdr_TASK_START();
bool_t xdr_SYMBOL_ADDR();
bool_t xdr_SOURCE_STEP();

#define RDBPROG (u_long) 0x44444444
#define RDBVERS (u_long) 3
#endif	INCxdrrdbh
OpenPOWER on IntegriCloud