xref: /original-bsd/sys/i386/i386/kgdb_proto.h (revision 9842e909)
1 /*
2  * Copyright (c) 1990 Regents of the University of California.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted
6  * provided that the above copyright notice and this paragraph are
7  * duplicated in all such forms and that any documentation,
8  * advertising materials, and other materials related to such
9  * distribution and use acknowledge that the software was developed
10  * by the University of California, Lawrence Berkeley Laboratory,
11  * Berkeley, CA.  The name of the University may not be used to
12  * endorse or promote products derived from this software without
13  * specific prior written permission.
14  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17  *
18  * @(#) $Header: kgdb_proto.h,v 1.3 91/03/12 22:06:43 mccanne Exp $ (LBL)
19  */
20 
21 /*
22  * Message types.
23  */
24 #define KGDB_MEM_R	0x01
25 #define KGDB_MEM_W	0x02
26 #define KGDB_REG_R	0x03
27 #define KGDB_REG_W	0x04
28 #define KGDB_CONT	0x05
29 #define KGDB_STEP	0x06
30 #define KGDB_KILL	0x07
31 #define KGDB_SIGNAL	0x08
32 #define KGDB_EXEC	0x09
33 
34 #define KGDB_CMD(x) ((x) & 0x0f)
35 
36 /*
37  * Message flags.
38  */
39 #define KGDB_ACK	0x80
40 #define KGDB_DELTA	0x40
41 #define KGDB_MORE	0x20
42 #define KGDB_SEQ	0x10
43