1 |
578 |
markom |
/* @(#)monitor.h 5.19 93/08/23 15:31:18, Srini, AMD */
|
2 |
|
|
/******************************************************************************
|
3 |
|
|
* Copyright 1991 Advanced Micro Devices, Inc.
|
4 |
|
|
*
|
5 |
|
|
* This software is the property of Advanced Micro Devices, Inc (AMD) which
|
6 |
|
|
* specifically grants the user the right to modify, use and distribute this
|
7 |
|
|
* software provided this notice is not removed or altered. All other rights
|
8 |
|
|
* are reserved by AMD.
|
9 |
|
|
*
|
10 |
|
|
* AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS
|
11 |
|
|
* SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL
|
12 |
|
|
* DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR
|
13 |
|
|
* USE OF THIS SOFTWARE.
|
14 |
|
|
*
|
15 |
|
|
* So that all may benefit from your experience, please report any problems
|
16 |
|
|
* or suggestions about this software to the 29K Technical Support Center at
|
17 |
|
|
* 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or
|
18 |
|
|
* 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118.
|
19 |
|
|
*
|
20 |
|
|
* Advanced Micro Devices, Inc.
|
21 |
|
|
* 29K Support Products
|
22 |
|
|
* Mail Stop 573
|
23 |
|
|
* 5900 E. Ben White Blvd.
|
24 |
|
|
* Austin, TX 78741
|
25 |
|
|
* 800-292-9263
|
26 |
|
|
*****************************************************************************
|
27 |
|
|
* Engineer: Srini Subramanian.
|
28 |
|
|
*****************************************************************************
|
29 |
|
|
* This header file declares the data structures and functions used by the
|
30 |
|
|
* monitor.c module of DFE.
|
31 |
|
|
*****************************************************************************
|
32 |
|
|
*/
|
33 |
|
|
|
34 |
|
|
/* Data structures that don't get used unless the monitor is
|
35 |
|
|
* invoked.
|
36 |
|
|
*/
|
37 |
|
|
|
38 |
|
|
#ifndef _MONITOR_H_INCLUDED_
|
39 |
|
|
#define _MONITOR_H_INCLUDED_
|
40 |
|
|
|
41 |
|
|
#include "types.h"
|
42 |
|
|
|
43 |
|
|
/* Monitor command limitations */
|
44 |
|
|
|
45 |
|
|
#define MAX_TOKENS 25
|
46 |
|
|
#define BUFFER_SIZE 256
|
47 |
|
|
#define MAXFILENAMELEN 256
|
48 |
|
|
|
49 |
|
|
/* Define target status: these correspond to UDI defined defined */
|
50 |
|
|
#define TRAPPED 0
|
51 |
|
|
#define NOTEXECUTING 1
|
52 |
|
|
#define RUNNING 2
|
53 |
|
|
#define STOPPED 3
|
54 |
|
|
#define WARNED 4
|
55 |
|
|
#define STEPPED 5
|
56 |
|
|
#define WAITING 6
|
57 |
|
|
#define HALTED 7
|
58 |
|
|
#define STDOUT_READY 8
|
59 |
|
|
#define STDERR_READY 9
|
60 |
|
|
#define STDIN_NEEDED 10
|
61 |
|
|
#define STDINMODEX 11
|
62 |
|
|
#define BREAK 12
|
63 |
|
|
#define EXITED 13
|
64 |
|
|
|
65 |
|
|
/*
|
66 |
|
|
** Dump and set routine definitions
|
67 |
|
|
*/
|
68 |
|
|
|
69 |
|
|
#define WORD_FORMAT 0
|
70 |
|
|
#define HALF_FORMAT 1
|
71 |
|
|
#define BYTE_FORMAT 2
|
72 |
|
|
#define FLOAT_FORMAT 3
|
73 |
|
|
#define DOUBLE_FORMAT 4
|
74 |
|
|
|
75 |
|
|
/*
|
76 |
|
|
* Keyboard polling modes.
|
77 |
|
|
*/
|
78 |
|
|
#define BLOCK 1
|
79 |
|
|
#define NONBLOCK 0
|
80 |
|
|
|
81 |
|
|
/*
|
82 |
|
|
** Structure for breakpoint array
|
83 |
|
|
*/
|
84 |
|
|
|
85 |
|
|
struct bkpt_t {
|
86 |
|
|
int break_id;
|
87 |
|
|
INT32 memory_space;
|
88 |
|
|
ADDR32 address;
|
89 |
|
|
INT32 pass_count;
|
90 |
|
|
INT32 curr_count;
|
91 |
|
|
INT32 bkpt_type;
|
92 |
|
|
struct bkpt_t *next;
|
93 |
|
|
};
|
94 |
|
|
|
95 |
|
|
extern struct bkpt_t *bkpt_table;
|
96 |
|
|
extern INT32 udi_waittime;
|
97 |
|
|
|
98 |
|
|
/* Monitor command functions */
|
99 |
|
|
|
100 |
|
|
INT32 asm_cmd PARAMS((char **, int));
|
101 |
|
|
INT32 bkpt_cmd PARAMS((char **, int));
|
102 |
|
|
INT32 config_cmd PARAMS((char **, int));
|
103 |
|
|
INT32 cmdfile_cmd PARAMS((char **, int));
|
104 |
|
|
INT32 dasm_cmd PARAMS((char **, int));
|
105 |
|
|
INT32 dump_cmd PARAMS((char **, int));
|
106 |
|
|
INT32 echomode_on PARAMS((char **, int));
|
107 |
|
|
INT32 echomode_off PARAMS((char **, int));
|
108 |
|
|
INT32 echofile_cmd PARAMS((char **, int));
|
109 |
|
|
INT32 fill_cmd PARAMS((char **, int));
|
110 |
|
|
INT32 go_cmd PARAMS((char **, int));
|
111 |
|
|
INT32 help_cmd PARAMS((char **, int));
|
112 |
|
|
INT32 io_toggle_cmd PARAMS((char **, int));
|
113 |
|
|
INT32 kill_cmd PARAMS((char **, int));
|
114 |
|
|
INT32 move_cmd PARAMS((char **, int));
|
115 |
|
|
INT32 reset_cmd PARAMS((char **, int));
|
116 |
|
|
INT32 set_cmd PARAMS((char **, int));
|
117 |
|
|
INT32 trace_cmd PARAMS((char **, int));
|
118 |
|
|
INT32 channel0_cmd PARAMS((char **, int));
|
119 |
|
|
INT32 Mini_poll_channel0 PARAMS((void));
|
120 |
|
|
INT32 version_cmd PARAMS((char **, int));
|
121 |
|
|
INT32 x_cmd PARAMS((char **, int));
|
122 |
|
|
INT32 xp_cmd PARAMS((char **, int));
|
123 |
|
|
INT32 xc_cmd PARAMS((char **, int));
|
124 |
|
|
INT32 i_cmd PARAMS((char **, int));
|
125 |
|
|
INT32 ix_cmd PARAMS((char **, int));
|
126 |
|
|
INT32 il_cmd PARAMS((char **, int));
|
127 |
|
|
INT32 yank_cmd PARAMS((char **, int));
|
128 |
|
|
INT32 quit_cmd PARAMS((char **, int));
|
129 |
|
|
INT32 quietmode_on PARAMS((char **, int));
|
130 |
|
|
INT32 quietmode_off PARAMS((char **, int));
|
131 |
|
|
INT32 dummy_cmd PARAMS((char **, int));
|
132 |
|
|
INT32 connect_cmd PARAMS((char **, int));
|
133 |
|
|
INT32 disconnect_cmd PARAMS((char **, int));
|
134 |
|
|
INT32 create_proc_cmd PARAMS((char **, int));
|
135 |
|
|
INT32 exit_conn_cmd PARAMS((char **, int));
|
136 |
|
|
INT32 destroy_proc_cmd PARAMS((char **, int));
|
137 |
|
|
INT32 set_pid_cmd PARAMS((char **, int));
|
138 |
|
|
INT32 capab_cmd PARAMS((char **, int));
|
139 |
|
|
INT32 set_sessionid_cmd PARAMS((char **, int));
|
140 |
|
|
INT32 init_proc_cmd PARAMS((char **, int));
|
141 |
|
|
INT32 escape_cmd PARAMS((char **, int));
|
142 |
|
|
INT32 tip_cmd PARAMS((char **, int));
|
143 |
|
|
INT32 logon_cmd PARAMS((char **, int));
|
144 |
|
|
INT32 logoff_cmd PARAMS((char **, int));
|
145 |
|
|
INT32 set_logfile PARAMS((char **, int));
|
146 |
|
|
|
147 |
|
|
#endif /* _MONITOR_H_INCLUDED_ */
|