aboutsummaryrefslogtreecommitdiff
path: root/indev/psn00bdbg-mk2/testutil/cmdefs.h
blob: 82e57e9603d5bed499c8668b7adf8004879baf35 (plain) (blame)
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
#ifndef _CMDEFS_H
#define _CMDEFS_H

/* status values */

#define DB_STAT_STOP    0           /* target is stopped */
#define DB_STAT_BREAK   1           /* breakpoint (not by break opcodes ) */
#define DB_STAT_EXCEPT  2           /* unhandled exception */
#define DB_STAT_RUN     3           /* target is running */

/* general commands */

#define CMD_REBOOT      0xA0        /* soft reboot console */

/* debug and execution commands */

#define CMD_DB_GETSTAT  0xD0        /* get target status */
#define CMD_DB_GETINFO  0xD1        /* get debug monitor info */
#define CMD_DB_SETEXEC  0xD2        /* execution control */
#define CMD_DB_RUNTO    0xD3        /* run to address */
#define CMD_DB_SETBRK	0xD4		/* Set a program breakpoint */
#define CMD_DB_CLRBRK	0xD5		/* Clear all program breakpoints */
#define CMD_DB_GETREGS  0xD6        /* get registers */
#define CMD_DB_GETMEM   0xD7        /* get memory */
#define CMD_DB_WORD     0xD8		/* get a word value */
#define CMD_DB_GETBRK	0xD9		/* get current breakpoints */
#define CMD_DB_SETREG	0xDA		/* set processor registers */
#define CMD_DB_SETBDREG	0xDB		/* set data breakpoint registers */

/* exec control values for CMD_DB_SETEXEC */

#define CMD_EXEC_STOP   0
#define CMD_EXEC_STEP   1
#define CMD_EXEC_RESUME 2

#endif /* _CMDEFS_H */