db_break.h revision 623
1139826Simp/* 253541Sshin * Mach Operating System 353541Sshin * Copyright (c) 1991,1990 Carnegie Mellon University 453541Sshin * All Rights Reserved. 553541Sshin * 653541Sshin * Permission to use, copy, modify and distribute this software and its 753541Sshin * documentation is hereby granted, provided that both the copyright 853541Sshin * notice and this permission notice appear in all copies of the 953541Sshin * software, derivative works or modified versions, and any portions 1053541Sshin * thereof, and that both notices appear in supporting documentation. 1153541Sshin * 1253541Sshin * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS 1353541Sshin * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR 1453541Sshin * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 1553541Sshin * 1653541Sshin * Carnegie Mellon requests users of this software to return to 1753541Sshin * 1853541Sshin * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 1953541Sshin * School of Computer Science 2053541Sshin * Carnegie Mellon University 2153541Sshin * Pittsburgh PA 15213-3890 2253541Sshin * 2353541Sshin * any improvements or extensions that they make and grant Carnegie the 2453541Sshin * rights to redistribute these changes. 2553541Sshin * 2653541Sshin * $Id$ 2753541Sshin */ 2853541Sshin 29174510Sobrien/* 3053541Sshin * Author: David B. Golub, Carnegie Mellon University 3153541Sshin * Date: 7/90 3253541Sshin */ 3353541Sshin#ifndef _DDB_DB_BREAK_H_ 3453541Sshin#define _DDB_DB_BREAK_H_ 3553541Sshin 3653541Sshin#include <vm/vm_map.h> 3753541Sshin#include <machine/db_machdep.h> 3853541Sshin 3953541Sshin/* 4053541Sshin * Breakpoint. 4153541Sshin */ 4253541Sshin 4353541Sshinstruct db_breakpoint { 4453541Sshin vm_map_t map; /* in this map */ 4553541Sshin db_addr_t address; /* set here */ 4653541Sshin int init_count; /* number of times to skip bkpt */ 4753541Sshin int count; /* current count */ 4853541Sshin int flags; /* flags: */ 4953541Sshin#define BKPT_SINGLE_STEP 0x2 /* to simulate single step */ 5053541Sshin#define BKPT_TEMP 0x4 /* temporary */ 5153541Sshin int bkpt_inst; /* saved instruction at bkpt */ 5253541Sshin struct db_breakpoint *link; /* link in in-use or free chain */ 5353541Sshin}; 5453541Sshintypedef struct db_breakpoint *db_breakpoint_t; 5553541Sshin 5653541Sshinextern db_breakpoint_t db_find_breakpoint(); 5753541Sshinextern db_breakpoint_t db_find_breakpoint_here(); 5853541Sshinextern void db_set_breakpoints(); 5953541Sshinextern void db_clear_breakpoints(); 6053541Sshin 61174510Sobrienextern db_breakpoint_t db_set_temp_breakpoint(/* db_addr_t addr */); 62174510Sobrienextern void db_delete_temp_breakpoint(/* db_breakpoint_t bkpt */); 6353541Sshin 6453541Sshin#endif _DDB_DB_BREAK_H_ 6553541Sshin