/*-1* SPDX-License-Identifier: MIT-CMU2*3* Mach Operating System4* Copyright (c) 1991,1990 Carnegie Mellon University5* All Rights Reserved.6*7* Permission to use, copy, modify and distribute this software and its8* documentation is hereby granted, provided that both the copyright9* notice and this permission notice appear in all copies of the10* software, derivative works or modified versions, and any portions11* thereof, and that both notices appear in supporting documentation.12*13* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS14* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR15* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.16*17* Carnegie Mellon requests users of this software to return to18*19* Software Distribution Coordinator or [email protected]20* School of Computer Science21* Carnegie Mellon University22* Pittsburgh PA 15213-389023*24* any improvements or extensions that they make and grant Carnegie the25* rights to redistribute these changes.26*/2728/*29* Author: David B. Golub, Carnegie Mellon University30* Date: 7/9031*/32#ifndef _DDB_DB_BREAK_H_33#define _DDB_DB_BREAK_H_3435/*36* Breakpoint.37*/3839#ifndef BKPT_INST_TYPE40#define BKPT_INST_TYPE int41#endif4243struct db_breakpoint {44vm_map_t map; /* in this map */45db_addr_t address; /* set here */46int init_count; /* number of times to skip bkpt */47int count; /* current count */48int flags; /* flags: */49#define BKPT_SINGLE_STEP 0x2 /* to simulate single step */50#define BKPT_TEMP 0x4 /* temporary */51BKPT_INST_TYPE bkpt_inst; /* saved instruction at bkpt */52struct db_breakpoint *link; /* link in in-use or free chain */53};54typedef struct db_breakpoint *db_breakpoint_t;5556void db_clear_breakpoints(void);57db_breakpoint_t db_find_breakpoint_here(db_addr_t addr);58void db_set_breakpoints(void);5960#endif /* !_DDB_DB_BREAK_H_ */616263