xref: /csrg-svn/old/adb/common_source/bkpt.h (revision 47822)
1*47822Sbostic /*-
2*47822Sbostic  * Copyright (c) 1991 The Regents of the University of California.
3*47822Sbostic  * All rights reserved.
436559Sbostic  *
5*47822Sbostic  * %sccs.include.proprietary.c%
6*47822Sbostic  *
7*47822Sbostic  *	@(#)bkpt.h	5.2 (Berkeley) 04/04/91
836559Sbostic  */
936559Sbostic 
1036559Sbostic #define	MAX_BKPTCOM	64	/* maximum length of command at bkpt */
1136559Sbostic 
1236559Sbostic enum bkflag { BKPT_FREE, BKPT_SET, BKPT_TRIPPED };
1336559Sbostic 
1436559Sbostic struct bkpt {
1536559Sbostic 	struct	bkpt *next;	/* linked list */
1636559Sbostic 	enum	bkflag state;	/* state */
1736559Sbostic 	addr_t	loc;		/* where set (in SP_INSTR) */
1836559Sbostic 	bpt_t	ins;		/* original instruction(s) */
1936559Sbostic 	int	count;		/* ??? */
2036559Sbostic 	int	initcnt;	/* ??? */
2136559Sbostic 	char	comm[MAX_BKPTCOM];/* command to execute when tripped */
2236559Sbostic };
2336559Sbostic 
2436559Sbostic struct bkpt *scanbkpt();	/* look up a breakpoint given an address */
25