1 /*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.proprietary.c% 6 * 7 * @(#)bkpt.h 5.2 (Berkeley) 04/04/91 8 */ 9 10 #define MAX_BKPTCOM 64 /* maximum length of command at bkpt */ 11 12 enum bkflag { BKPT_FREE, BKPT_SET, BKPT_TRIPPED }; 13 14 struct bkpt { 15 struct bkpt *next; /* linked list */ 16 enum bkflag state; /* state */ 17 addr_t loc; /* where set (in SP_INSTR) */ 18 bpt_t ins; /* original instruction(s) */ 19 int count; /* ??? */ 20 int initcnt; /* ??? */ 21 char comm[MAX_BKPTCOM];/* command to execute when tripped */ 22 }; 23 24 struct bkpt *scanbkpt(); /* look up a breakpoint given an address */ 25